Android: set layout dimension, center it and set to fullscreen in combination does not work?

So I don't have a solution but a small hack. The following destroys the app when the home button was pressed. That forces the app to restart and hide the top bar again.

I'm not happy with this hack but it works for now.

So I don't have a solution but a small hack. The following destroys the app when the home button was pressed. That forces the app to restart and hide the top bar again.

I'm not happy with this hack but it works for now. /* * (non-Javadoc) * * @see android.app. Activity#onStop() */ @Override protected void onStop() { super.onStop(); //hack to prevent stopping fullscreen mode if the home button was pressed ActivityManager am = (ActivityManager) this .

GetSystemService(ACTIVITY_SERVICE); List taskInfo = am. GetRunningTasks(1); ComponentName componentInfo = taskInfo. Get(0).

TopActivity; if(componentInfo. GetShortClassName(). EqualsIgnoreCase(".

Launcher")) { onDestroy(); } } @Override public void onDestroy() { super.onDestroy(); System. RunFinalizersOnExit(true); System. Exit(0); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions