Android status bar and keyboard io

Monkey Targets Forums/Android/Android status bar and keyboard io

Deen(Posted 2014) [#1]
how to actually make my apps having a status bar (battery, wifi, line signal etc). All my apps having a fullscreen instead?

is there any command we can really retrieve all of this information such thing like battery charging state, battery level, wifi connectivity and strength from the device system information?

and can we really get the virtual keyboard slide in my apps when needed, and along with their key pressed input to the game. I'm planning to make a typing speed game indeed.


therevills(Posted 2014) [#2]
how to actually make my apps having a status bar (battery, wifi, line signal etc). All my apps having a fullscreen instead?

You will need to alter the either the template or your built AndroidManifest.xml:
Remove this line:
[code]android:theme=\"@...]

is there any command we can really retrieve all of this information such thing like battery charging state, battery level, wifi connectivity and strength from the device system information?

You would need to extern these yourself I believe...

can we really get the virtual keyboard slide in my apps when needed

http://www.monkey-x.com/docs/html/Modules_mojo.input.html#EnableKeyboard


Deen(Posted 2014) [#3]
thanks therevills.. great answer there. btw, the second questions, what do you mean extern these myself. im not so sure when it comes to Android native programming. is there anybody has come with Module for me to play with? or any snips example on how to extern android native into a module?.


therevills(Posted 2014) [#4]
Extern allows you to access native code.
Have a look at Diddy's extern functions:

Monkey code:
http://code.google.com/p/diddy/source/browse/src/diddy/externfunctions.monkey

Native Java (Android) code:
http://code.google.com/p/diddy/source/browse/src/diddy/native/diddy.android.java

Also BRL's Admob library is a good example.


Deen(Posted 2014) [#5]
aha!.. GREAT!.. thanks Therevills.. now i know what to do :)