This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing of value  RSS feed

 
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!
 
Saloon Keeper
Posts: 4280
106
  • 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
Saloon Keeper
Posts: 4280
106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Via getIntent().getExtras() in the onCreate method.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!