warwound,
RandomCoder,
Thank you for sharing this information. I did a quick check on
Google regarding this option: "
.NoTitleBar"
and found that:
1. One suggested alternative to manifest entry in pure Java Android development is setting following attributes in software code:
public class FullScreen extends Activity {
@@override
publicvoid onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
}}
Source of information here:
http://www.androidsnippets.com/how-to-make-an-activity-fullscreen
But... when I check java code generated by
B4A (
main.java file) - looks like these parameters set already
(search for
FEATURE_NO_TITLE and
FLAG_FULLSCREEN)
2. Just as a guess - could we use following workaround - if we set this
NoTitleBar option in Manifest for specific
Activity
- then could we create another
Activity for which this setting would have no effect and where we for example could create title bar ?
P.S. I've tried to run application in Debug mode and this is what I could see if I set breakpoint at
Layout loading:
---cut---
Switching to real app window: Window{b58ef888 my_test_app.demo.ru/my_test_app.demo.ru.main paused=false}
Switching to real app window: Window{b58ef888 my_test_app.demo.ru/my_test_app.demo.ru.main paused=false}
Displayed my_test_app.demo.ru/.main: +2s133ms
** Activity (main) Create, isFirst = true **
---cut---
Looks like this is where window with Android service icon and Application name in title bar
displayed (not in full screen mode !!!) - but how to find where it's initialized ?
Regards,
agb2008