• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing of value

 
D. Capri Michael
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
Just wondering how to pass one value from one intent/activity to another intent/activity in android?
Thank you!
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using Intent.putExtra(theName, theData).
 
D. Capri Michael
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to retrieve from another intent/activity?
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Via getIntent().getExtras() in the onCreate method.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic