Example #1
0
  public static synchronized void handleGlobalError(final Context context, final RRError error) {

    addGlobalError(error);

    AndroidApi.UI_THREAD_HANDLER.post(
        new Runnable() {
          @Override
          public void run() {
            final Intent intent = new Intent(context, BugReportActivity.class);
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(intent);
          }
        });
  }