@@ -0,0 +1,961 @@
+package com.example.ismailamrani.comptable.utils;%0A%0Aimport android.content.Context;%0Aimport android.content.SharedPreferences;%0Aimport android.preference.PreferenceManager;%0A%0Aimport com.example.ismailamrani.comptable.sqlite.DatabaseAdapter;%0A%0A/**%0A * Created by Mohammed Aouf ZOUAG on 27/05/2016.%0A */%0Apublic class Preferences %7B%0A%0A    private static final String CURRENT_LOCALE_ID = %22currentLocaleID%22;%0A%0A    private DatabaseAdapter mDatabaseAdapter;%0A    private SharedPreferences mSharedPreferences;%0A%0A    public Preferences(Context context) %7B%0A        mDatabaseAdapter = DatabaseAdapter.getInstance(context);%0A        mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);%0A    %7D%0A%0A    public void setCurrentLocaleID(int id) %7B%0A        mSharedPreferences.edit()%0A                .putInt(CURRENT_LOCALE_ID, id)%0A                .apply();%0A    %7D%0A%0A    public int getCurrentLocaleID() %7B%0A        return mSharedPreferences.getInt(CURRENT_LOCALE_ID, -1);%0A    %7D%0A%7D%0A

Create the 'Preferences' class.