Android Open Source - CirclesLiveWallpaper_Android Circles Preference Activity






From Project

Back to project page CirclesLiveWallpaper_Android.

License

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.

Java Source Code

package com.blogspot.techzealous.circleslivewallpaper;
/*from  w  w w .  ja v a 2s  .co m*/
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

import com.blogspot.techzealous.circleslivewallpaper.utils.CirclesConstants;

public class CirclesPreferenceActivity extends PreferenceActivity {
  
  private SharedPreferences prefs;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    addPreferencesFromResource(R.xml.preferences);
    prefs = PreferenceManager.getDefaultSharedPreferences(this);
    
    if(!prefs.getBoolean(CirclesConstants.PREF_EULA, false)) {
      Intent i = new Intent(this, CirclesEula.class);
      startActivity(i);
      finish();
    }
    
//    Preference prefSpeed = (Preference) findPreference(res.getString(R.string.pref_key_speed));
//    prefSpeed.setOnPreferenceClickListener(new OnPreferenceClickListener() {
//      @Override
//      public boolean onPreferenceClick(Preference preference) {
//        Intent i = new Intent(CirclesPreferenceActivity.this, CirclesSpeedActivity.class);
//        startActivity(i);
//        finish();
//        return false;
//      }
//    });
  }
}




Java Source Code List

com.blogspot.techzealous.circleslivewallpaper.CirclesBackColorActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesCountActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesEula.java
com.blogspot.techzealous.circleslivewallpaper.CirclesPreferenceActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesService.java
com.blogspot.techzealous.circleslivewallpaper.CirclesSpeedActivity.java
com.blogspot.techzealous.circleslivewallpaper.utils.CirclesConstants.java
com.blogspot.techzealous.circleslivewallpaper.utils.MyCircle.java