예제 #1
0
 @Override
 @SuppressLint("NewApi")
 public void superStartActivity(Intent intent, int requestCode, Bundle options) {
   if (VERSION.SDK_INT >= 16) {
     super.startActivity(intent, options);
   } else {
     super.startActivity(intent);
   }
 }
예제 #2
0
 /**
  * Notify user with a dialog the app has crashed, ask permission to send it. {@link
  * CrashReportDialog} Activity.
  *
  * @param reportFileName Name fo the error report to display in the crash report dialog.
  */
 void notifyDialog(String reportFileName) {
   Log.d(LOG_TAG, "Creating Dialog for " + reportFileName);
   Intent dialogIntent = new Intent(mContext, CrashReportDialog.class);
   dialogIntent.putExtra(ACRAConstants.EXTRA_REPORT_FILE_NAME, reportFileName);
   dialogIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   mContext.startActivity(dialogIntent);
 }