views:

29

answers:

0

I'm working on a live wallpaper and I would like to load in my shared_preferences file only when the wallpaper is first set or when the user visits my PreferenceActivty. I'm currently loading in my preferences in onVisibilityChanged() of my WallpaperEngine() class.

Is there a place that makes more sense?

The reason I don't want to load my preferences all the time is... I have found the easiest algorithm is to destroy my sprite arraylists and recreate them, however my sprites don't save their state, and upon phone rotation etc, they'll redraw in a different spot.