Android Open Source - WhichFuel Premium






From Project

Back to project page WhichFuel.

License

The source code is released under:

MIT License

If you think the Android project WhichFuel 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 premium;//from ww w . j  a va  2  s. c om

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;

public class Premium {
    public static final String PREFS_NAME = "premium_prefers";
    private final Context context;
    private final String mString[] = {"Pro", "WakeLock", "Graphic", "Porcentage"};
    private final int mSize = 4;
    private boolean mSave;
    private int mQtdeKeys;

    public Premium(Context context) {
        this.context = context;
    }

    public int restoreInt(String key, int defValue) {
        // Restore preferences
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        return settings.getInt(key, defValue);
    }

    public void saveInt() {
        // All objects are from android.context.Context
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        SharedPreferences.Editor editor = settings.edit();

        editor.putBoolean("Pro", mSave);

        // Commit the edits!
        editor.commit();
    }

    public boolean restoreBoolean() {
        // Restore preferences
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        return settings.getBoolean("Pro", false);
    }

    public void saveBoolean() {
        // All objects are from android.context.Context
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        SharedPreferences.Editor editor = settings.edit();
        editor.putBoolean("Pro", mSave);

        // Commit the edits!
        editor.commit();
    }


}*/




Java Source Code List

.Premium.java
com.android.fuel.MainActivity.java
com.android.fuel.SecondActivity.java
com.android.fuel.SettingsActivity.java
control.Control.java
control.Control.java
dev.android.combustivel.BuildConfig.java
dev.android.combustivel.MainActivity.java
dev.android.combustivel.MyActivity.java
dev.android.combustivel.SettingsActivity.java
essential.ToastControl.java