Search in sources :

Example 11 with ErrorDialog

use of org.csploit.android.gui.dialogs.ErrorDialog in project android by cSploit.

the class RouterPwn method onActionClick.

@Override
public void onActionClick(Context context) {
    try {
        String uri = "http://routerpwn.com/";
        Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
        context.startActivity(browser);
    } catch (ActivityNotFoundException e) {
        System.errorLogging(e);
        new ErrorDialog(getString(R.string.error), getString(R.string.no_activities_for_url), (Activity) context).show();
    }
}
Also used : ActivityNotFoundException(android.content.ActivityNotFoundException) ErrorDialog(org.csploit.android.gui.dialogs.ErrorDialog) Intent(android.content.Intent)

Aggregations

ErrorDialog (org.csploit.android.gui.dialogs.ErrorDialog)11 ActivityNotFoundException (android.content.ActivityNotFoundException)5 Intent (android.content.Intent)5 InputDialog (org.csploit.android.gui.dialogs.InputDialog)4 InputDialogListener (org.csploit.android.gui.dialogs.InputDialog.InputDialogListener)4 SharedPreferences (android.content.SharedPreferences)3 View (android.view.View)3 OnClickListener (android.view.View.OnClickListener)3 ListView (android.widget.ListView)3 TextView (android.widget.TextView)3 IOException (java.io.IOException)3 ConfirmDialog (org.csploit.android.gui.dialogs.ConfirmDialog)3 ConfirmDialogListener (org.csploit.android.gui.dialogs.ConfirmDialog.ConfirmDialogListener)3 Target (org.csploit.android.net.Target)3 AdapterView (android.widget.AdapterView)2 OnItemLongClickListener (android.widget.AdapterView.OnItemLongClickListener)2 ImageView (android.widget.ImageView)2 PatternSyntaxException (java.util.regex.PatternSyntaxException)2 ChildManager (org.csploit.android.core.ChildManager)2 SpinnerDialog (org.csploit.android.gui.dialogs.SpinnerDialog)2