• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Start Activity

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello how to use startActivityForResult
how to define requestcode.

can you give me sample code.

Thanks
Chetan
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello how to use startActivityForResult
how to define requestcode.


The request code is simply a unique number within your calling activity, so you can determine one child activity's result from another. If you are only using one call to startActivityForResult(), you can pretty much just pass 0 and ignore it in onActivityResult().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic