baba vali wrote:
> hi all,
>  
> 
> Intent intent =
> 
> *new* Intent();
> 
> intent.setClass(ListSelected.
> 
> *this*,Data.*class*);
> 
>  
> 
> i am using above code to move to the next class
> 
> but at the same time i have to pass string to the data class
> 
> which was used for further process.
> 
> like when i press a text from a list i want ot pass 
> 
> the position of the text in the list 
> 
>  
> 
> can someone help me out of this

You'll want to use an "extra". Each Intent has a Map-style set of 
methods to get and set typed values. So, for example, you could do:

intent.putExtra(YOUR_KEY_HERE, someNeededValue)

On the activity being started, getIntent().getStringExtra(YOUR_KEY_HERE) 
would retrieve the value.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to