new AlertDialog.Builder(this)
  .setTitle(R.string.config_url)
   .setItems(new CharSequence[]{
        getString(R.string.config_url_scan),
        getString(R.string.config_url_manual)
     }, new OnClickListener() {
             @Override
             public void onClick(DialogInterface dialogInterface, int i) {
                 switch (i) {
                     case 0:
                         scanForProxyUrl();
                         break;
                     case 1:
                         showProxyUrlInputDialog();
                         break;
                 }
          }
    }).show();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2021-06-10
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-12-04
相关资源
相似解决方案