Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (id){
- case 1 :
- preferences = getSharedPreferences("MY_PREFS", Context.MODE_PRIVATE);
- SharedPreferences.Editor editor = preferences.edit();
- editor.putInt("is_auth",0);
- editor.apply();
- Intent intent1 = new Intent(MainActivity.this,LoginActivity.class);
- intent1.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
- startActivity(intent1);
- break;
- case 1 :
- Intent intent2 = new Intent(MainActivity.this,AboutActivity.class);
- startActivity(intent2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement