> Anyways, I'd like for the first Activity to be able to send an array
> with data (Strings for example) to the second one...
> Right now I show an activity by using :
>
> Intent i = new Intent(this, activitysName.class);
> startActivity(i);
>
> I have no idea whilst using this construction how I can "initialize"
> the new object with the String array I want to pass to it...
> So how should this be achieved ? Should I be using something else
> instead of an Intent-Activity combination ?

Call putExtra() on the Intent after construction to attach the String
array. Call getStringArrayExtra() on the Intent in the receiving Activity
to get it back.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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