Code example for ActionBarActivity

Methods: getSupportActionBar, getWindow, onCreate

0
 
public class SplashScreen extends ActionBarActivity { 
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
		getSupportActionBar().hide(); 
		//setContentView(R.layout.activity_splash_screen); 
 
		new ProlongSplashScreen().execute();
	} 
 
	private boolean needsToChangePassword(){ 
		 
		SharedPreferences creds = getSharedPreferences("Login", MODE_PRIVATE);         
	 
		// force-change password if the user's password is still wepbook 
		if(creds.getString("password", "false").equals("wepbook"))
			return true;