Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android 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: 4474
112
  • 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: 4474
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Via getIntent().getExtras() in the onCreate method.
 
I love a good mentalist. And so does this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!