1
Androidでは、少量のデータを保存するためにSharedPreferencesクラスを使用できます。例:Ionic 2のSharedPreferencesに相当するクラスは何ですか?
SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putInt(getString(R.string.saved_high_score), newHighScore);
editor.commit();
Ionic 2のSharedPreferencesに相当するクラスは何ですか?どのように使用できますか?
@HassanShahzad。しかし、これを試してみてくださいhttps://github.com/apla/me.apla.cordova.app-preferences – Viana
@ハッサンShahzadマットの答えは私のために働いた。 – Viana