Guest User

Untitled

a guest
Feb 3rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. the problem was existing here i.e WebViewActivity.class
  2. problem:you trying to get the int value from string data.
  3.  
  4. Intent intent = getIntent();
  5. int restu = intent.getIntExtra("restu", 0);
  6.  
  7. solution :follow bellow statements.
  8. Intent intent = getIntent();
  9. String id = intent.getStringExtra("restu");
  10. //here, have to convert string to integer
  11. int restu = Integer.parseInt(id);
Add Comment
Please, Sign In to add comment