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();
}
}
Aggregations