Advertisement
Guest User

Untitled

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