I have one widget....when i open it one activity is launched...I can
close it....or I can go back..In onDestroy i am closing my
cursor......when i press back, and again click on widget it goes to
onCreate and then onResume...

 but when I press on Home key,and click on widget to open it,then my
control goes to onResume, here some values are retrieved  from
database,this thing works fine in all situations except when i come
back after pressing Home key..

Problem is that Cursor is not closing,even if I close cursor in onStop
or onPause .It is giving StaleDataException......

I cannot finish the activity in onPause or onStop,coz it creates
problem when I change orientation..

any reply will help me a lot,coz this is urgent...

Thanks in advance...
--~--~---------~--~----~------------~-------~--~----~
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