private void onStartSurvey()
 {
   if (this.mSurveyBegun) {
     return;
   }
   if (!MPConfig.getInstance(this).getTestMode()) {
     trackSurveyAttempted();
   }
   AlertDialog.Builder localBuilder = new AlertDialog.Builder(this);
   localBuilder.setTitle(R.string.com_mixpanel_android_survey_prompt_dialog_title);
   localBuilder.setMessage(R.string.com_mixpanel_android_survey_prompt_dialog_message);
   localBuilder.setPositiveButton(R.string.com_mixpanel_android_sure, new DialogInterface.OnClickListener()
   {
     public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
     {
       SurveyActivity.this.findViewById(R.id.com_mixpanel_android_activity_survey_id).setVisibility(0);
       SurveyActivity.access$402(SurveyActivity.this, true);
       SurveyActivity.this.showQuestion(SurveyActivity.this.mCurrentQuestion);
     }
   });
   localBuilder.setNegativeButton(R.string.com_mixpanel_android_no_thanks, new DialogInterface.OnClickListener()
   {
     public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
     {
       SurveyActivity.this.finish();
     }
   });
   localBuilder.setCancelable(false);
   this.mDialog = localBuilder.create();
   this.mDialog.show();
 }
  private void handleNotificationIntent(Context context, Intent intent) {
    final MPConfig config = MPConfig.getInstance(context);
    String resourcePackage = config.getResourcePackageName();
    if (null == resourcePackage) {
      resourcePackage = context.getPackageName();
    }

    final ResourceIds drawableIds = new ResourceReader.Drawables(resourcePackage, context);
    final Context applicationContext = context.getApplicationContext();
    final Notification notification = buildNotification(applicationContext, intent, drawableIds);

    if (null != notification) {
      final NotificationManager notificationManager =
          (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.notify(0, notification);
    }
  }