I am developing a very basic widget for Android. My widget has a variable that keeps the users choices, it's declared as static. The problem is that after a while, I suspect after a long stand by, the widget get's somewhat emptied out and the static variable becomes empty. What is the the solution to save the state of my widget without losing the "history" of it's life? onSaveInstanceState onPause are not defined for AppWidgetProvider. Any suggestion?
質問する
303 次