[Solved] Unfortunately, [APP] has stopped! WHAT am i doing wrong? [closed]


Put these 2 lines inside onCreate() after findViewById, then you can use context.

SharedPreferences store = PreferenceManager.getDefaultSharedPreferences(getApplication());
SharedPreferences.Editor edit = store.edit();

solved Unfortunately, [APP] has stopped! WHAT am i doing wrong? [closed]