Re: [android-developers] passing arrays between classes using intent

2011-03-13 Thread TreKing
On Sun, Mar 13, 2011 at 7:49 AM, Chetan Singh Bisht  wrote:

> now i need to pass these values from an activity class to map
> activity class..i have used bundle to pass variables but i have no clue how
> to pass integer and string arrays and how to retrieve them in the
> second class using bundle...
>
> can anyone please provide codes or relevant links which may be helpful in
> solving this problem using bundle
>

Um ... have you looked at the Bundle class documentation? There are
functions that are literally called putXArray and getXArray, where "X" is
some type.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] passing arrays between classes using intent

2011-03-13 Thread Mark Murphy
On Sun, Mar 13, 2011 at 8:49 AM, Chetan Singh Bisht
 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 mapconnectivity
> 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/commonsguy
http://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 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


[android-developers] passing arrays between classes using intent

2011-03-13 Thread Chetan Singh Bisht
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 mapconnectivity
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..i have used bundle to pass variables but i have no clue how to
pass integer and string arrays and how to retrieve them in the second
class using bundle...

can anyone please provide codes or relevant links which may be helpful
in solving this problem using bundle

any help will be really appreciatedcheers :)

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


[android-developers] passing arrays between classes using intent

2011-03-13 Thread Chetan Singh Bisht
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 mapconnectivity
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..i have used bundle to pass variables but i have no clue how to
pass integer and string arrays and how to retrieve them in the second
class using bundle...

can anyone please provide codes or relevant links which may be helpful
in solving this problem using bundle

any help will be really appreciatedcheers :)

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