Emre A. Yavuz wrote:
>  
> Hi,
>  
> I'd like to pass a variable to a new activity which I start using
> an Intent. I know that I need to use the putExtra() method on the intent
> which I create in the old Activity. I also know that I need to use the
> getIntExtra() method (assuming that the variable I am trying to pass is
> an Integer) to grab it in the new Activity.
>  
> Here comes the problem;
>  
> I have to call the method getIntExtra() on an Intent in the new
> Activity, yet I am not sure what that Intent would be. How can I get a
> hold of the Intent which I created in the old Activity ? Any suggestions ?

Call getIntent().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to