Is it possible to switch to fullscreen another app which I launched from my app trougth Intent? I tried this
intentScan.putExtra("force_fullscreen", true);
but this code doesn't hide action bar. Thanks for every help!
Is it possible to switch to fullscreen another app which I launched from my app trougth Intent? I tried this
intentScan.putExtra("force_fullscreen", true);
but this code doesn't hide action bar. Thanks for every help!
Try something like this in your AndroidManifest file:
<activity android:name=".ActivityName"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
(Copied from Fullscreen Activity in Android)
you can try this in the next activity's onCreate:
Intent intent=getIntent();
boolean isfullScreen = intent.getBooleanExtra("force_fullscreen", false);
if(getIntent()!=null)
{
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
That's why Fragments came about, you have another app entry point with another class and theme, but they all point to the same Fragment and app logic.