Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Easy way to create crash:
  2. 0/ Require: Login to Gigya
  3. 1/ copy below methods in EmkitProximityService to any activity
  4. 2/ add them into a view with click actions
  5. 3/ Click on the view which has showProgressDlg
  6. 4/ If not crash, click button back and go back to step 3 and continue until crash
  7.  
  8. public static void showProgressDlg() {
  9. progressIntent = new Intent(mCon, CustomDialogActivity.class);
  10. progressIntent.setFlags(805306368);
  11. mCon.startActivity(progressIntent);
  12. }
  13.  
  14. one more question:
  15. In CustomDialogActivity, I see
  16. if(this.getIntent().getExtras() != null && this.getIntent().getExtras().getInt("kill") == 1) {
  17. this.finish();
  18. }
  19. in onCreate() method. Should it be handled in onNewIntent()?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement