Pass them as simple strings using the intent. Or you can pass String
arrays also.

putExtra(String  name, String[]  value);
putExtra(String  name, String  value)

And you have there get counterparts as well.

Thanks and Regards,
Kumar Bibek

On Jun 2, 7:33 pm, Dixit Wadhwani <[email protected]> wrote:
> first.java
> ...............
>                                 String[] items={"one","two"};
>                                 Bundle map = new Bundle();
>                                 map.putStringArray("link",items);
>                                 Intent myintent = new 
> Intent(view.getContext(),two.class);
>                                 myintent.putExtras(map);
>                                 startActivityForResult(myintent,0);
> ................
>
> second.java
> .................
>
>                                Bundle map=this.getIntent().getExtras();
>                                String links=map.getString("link");
> ..................
>
> tell me that how can i get the two string values
> from one activity to another one....such as links[0]="one"; and 
> links[1]="two";
>
> please help me....

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to