I think, you could use JSONArray to store data, convert JSON array to
string and put it into extras. It's only way how to do it.
Another way is to store arrays in different singleton object/static
class or put data into SQLite database and read from other activity
but it is not using Intent.

On 13 Mar, 14:16, Mark Murphy <[email protected]> wrote:
> On Sun, Mar 13, 2011 at 8:49 AM, Chetan Singh Bisht
>
> <[email protected]> wrote:
> > hi, i am developing a final year project where i need to retrieve
> > details of hospitals like name ,address, location(in terms of latitude
> > and longitude) from a server and display them on a map....connectivity
> > has been established and i am able to retrieve the values in the from
> > of array like address[], name[] etc..
>
> > now i need to pass these values from an activity class to map activity
> > class..
>
> What you really need is a central spot to hold that data, such as a database.
>
> Think of a Web app. Would you pass the entire contents of your
> "details of hospitals" in GET parameters from one Web page to another?
> Or would you hold the "details of hospitals" in a central place (Web
> server) and use the data from both pages?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

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