Yes, provided your are working with arrays of primitives or Strings Bundle will work just fine.
However, a db solution as Mark suggests has a number of advantages. Your network queries should be happening in the background such as a Service. Once your service fetches the data and saves in the db then it can just send an Intent to notify the Activity that the data is ready to pickup. Your activity then queries the DB and gets a Cursor on that data. I wouldn't suggest passing around big arrays or other objects between activities. If something like a phone call or orientation change happens at an unfortunate time, then poof there goes the results of your network query and you might have to start over. Jonathan On Mar 13, 11:08 am, TreKing <[email protected]> wrote: > On Sun, Mar 13, 2011 at 7:49 AM, Chetan Singh Bisht <[email protected] > > > 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 <http://sites.google.com/site/rezmobileapps/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 [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

