Android Open Source - CirclesLiveWallpaper_Android Circles Eula






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;
/*ww w.j a va 2 s.c om*/
import android.app.Activity;
import android.content.Intent;
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 com.blogspot.techzealous.circleslivewallpaper.utils.CirclesConstants;

public class CirclesEula extends Activity {

  private SharedPreferences prefs;
  private Button buttonOk;
  private Button buttonCancel;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    setContentView(R.layout.circleseula);
    
    prefs = PreferenceManager.getDefaultSharedPreferences(this);
    buttonOk = (Button) findViewById(R.id.buttonEulaOk);
    buttonCancel = (Button) findViewById(R.id.buttonEulaCancel);
    
    buttonOk.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
        prefs.edit().putBoolean(CirclesConstants.PREF_EULA, true).commit();
        Intent i = new Intent(CirclesEula.this, CirclesPreferenceActivity.class);
        startActivity(i);
        finish();
      }
    });
    
    buttonCancel.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
        finish();
      }
    });
  }
  
}




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