Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: XML
Posted by: attamustafa mustafa
Added: Jun 16, 2020 10:24 AM
Views: 22
Tags: mode night
  1. AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
  2.         startActivity(new Intent(getApplicationContext(),MainActivity.class));
  3.         finish();