Alternatives to static variables in Android

Posted by Mocha on Stack Overflow See other posts from Stack Overflow or by Mocha
Published on 2010-06-17T18:35:31Z Indexed on 2010/06/17 19:03 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I am using static Arrays and HashMaps to store some values in my AppWidgetProvider class. But they are becoming null when the process dies, so the widget does not work anymore. Are there any alternatives to using static members to store data for an AppWidgetProvider in Android?

© Stack Overflow or respective owner

Related posts about java

Related posts about android