View Single Post
Old October 5th, 2009, 02:53 PM   #2 (permalink)
HUGE
New Member
 
Join Date: Oct 2009
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perhaps I don't understand the real reason why you want to pass cursor into a new activity, but in general it's a real bad idea. It can be bad in general for complex objects roaming across activities but it's even worse for cursors - you create a cursor based on Context and thus it should not be used outside of this context. So there are two obvious solutions:
- pass URI rather than Cursor
- make query() in the same activity which is supposed to display query results
HUGE is offline  
Reply With Quote