开发者

Help adding Settings To Android Live Wallpaper

开发者 https://www.devze.com 2023-01-14 08:02 出处:网络
Hi I\'m a bit of a novice developer looking for help from so开发者_开发技巧meone who has more of a clue then me lol. So I\'m working on a project which you can download here, Eclipse Project Link

Hi I'm a bit of a novice developer looking for help from so开发者_开发技巧meone who has more of a clue then me lol. So I'm working on a project which you can download here, Eclipse Project Link

Sorry for the suspicious link but it's on my site and you can check it for viruses. Ok well I need help adding settings to choose which texture to show you should be able to tell what I mean because there are already two set up. i have the gui for the settings set up along with the activity I just can't figure out how to implement it. If you can help me I'll credit you in the app in the settings and the market post. Along with your name, website or, whatever on my youtube channel in a video. Which can be found here, youtube.com/motodroidhelpandinfo. I have over 1,200 subscribers. Thanks in advance.


If you have followed an example or tutorial then your settings will be a preference activity that save to a shared preference, in order to use that in the program you use something like the following:

 SharedPreferences mPrefs = NexusRevampedWallpaper.this.getSharedPreferences(SHARED_PREFS_NAME, 0);
 Boolean b = sharedPreferences.getBoolean("Example Setting", true);

Where SHARED_PREFS_NAME which should match the name used in the preference activity. Hope I understood your question properly and that this helps :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号