Code example for SharedPreferences

Methods: unregisterOnSharedPreferenceChangeListener

0
    } 
 
    @Override 
    public void stop(boolean forReal) {
        if (forReal) {
            mSharedPref.unregisterOnSharedPreferenceChangeListener(this);
        } 
        super.stop(forReal);
    } 
 
    @Override 
    public void start() { 
        makeNewState(); 
        super.start(); 
    } 
 
    float alphafactor;
    Type mTextureType; 
 
    void loadBitmap(int id, int index, String name, float alphamul, int lowcol, int highcol) {
        BitmapFactory.Options opts = new BitmapFactory.Options();