Get data from an activity in AppWidget after clear memory
I have encountered a problem that I built an AppWidget which gets data
from an activity through a service. But after I clear phone memory, the
service can't get any data. I think the activity has been killed, so the
service get null data.
I'm wondering is there anyway to get the data in my activity again? (Maybe
restart the activity?) But I don't want to use SharedPreferences because
it can only use to store primitives.
No comments:
Post a Comment