Back to project page CirclesLiveWallpaper_Android.
The source code is released under:
GNU General Public License
If you think the Android project CirclesLiveWallpaper_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.blogspot.techzealous.circleslivewallpaper; //from w w w .jav a 2 s . c om import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.SeekBar; import com.blogspot.techzealous.circleslivewallpaper.utils.CirclesConstants; public class CirclesSpeedActivity extends Activity { private SharedPreferences prefs; private SeekBar seekBarCirclesSeepd; private Button buttonOk; private Button buttonCancel; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.circlesspeed); prefs = PreferenceManager.getDefaultSharedPreferences(this); seekBarCirclesSeepd = (SeekBar) findViewById(R.id.seekBarCirclesSpeed); buttonOk = (Button) findViewById(R.id.buttonSpeedOk); buttonCancel = (Button) findViewById(R.id.buttonSpeedCancel); seekBarCirclesSeepd.setKeyProgressIncrement(1); seekBarCirclesSeepd.setProgress(1000 - prefs.getInt(CirclesConstants.PREF_SPEED, 100)); buttonOk.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { prefs.edit().putInt(CirclesConstants.PREF_SPEED, 1000 - seekBarCirclesSeepd.getProgress()).commit(); finish(); } }); buttonCancel.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { finish(); } }); } }