Pass cursor to new Activity

by GabeRC » Mon, 05 Oct 2009 11:34:12 GMT


Sponsored Links
 I'm working on an app, and one activity has a worker thread that
initiates a database query, and if there are results once it has
returned I would like to send these results to a new activity that
will display them. Unfortunately I don't see a way to pack the Cursor
object into the Intent object that I am using to start the new
activity. When I was doing Windows Mobile development in the past all
I would do is edit the constructor for the window to pass in the data,
I've searched around but I can't find a similar solution for Android.
What is the best way to pass my database results into the new activity?

--~--~---------~--~----~------------~-------~--~----~



Pass cursor to new Activity

by Mark Murphy » Mon, 05 Oct 2009 11:37:57 GMT


 > What is the best way to pass my database results into the new activity?

Have the new activity do the database work in the first place.

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



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Pass cursor to new Activity

by Agus » Mon, 05 Oct 2009 11:38:06 GMT


 Can't you do a db query again in the destined activity?





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Launching adb commands programtically from android application

>   Is it possible to launch adb commands programatically from any

No. The adb program runs on your development machine, not a device.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~

2. Using WifiManager or WifiConfiguration.Status

Hi all,
Does anyone have an idea how use those Class(WifiManager or
WifiConfiguration.Status) ????
this is my code but doesn't work even if the manifestxml has all the
necessary permession


WifiManager manager= (WifiManager) getSystemService
(Context.WIFI_SERVICE);
if( manager.isWifiEnabled()){
..............}
else{
.................
}


Thx ;

--~--~---------~--~----~------------~-------~--~----~

3. Problem compiling Master and/or Cupcake, before and after the merge, targeting HTC Dream

4. Launching adb commands programtically from android application

5. Help using autocomplete in my database.....

6. raw data from sound file

7. I have problem with socket