Android fullscreen-immersive

About Monkey 2 Forums Monkey 2 Programming Help Android fullscreen-immersive

This topic contains 2 replies, has 1 voice, and was last updated by  abakobo 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15056

    abakobo
    Participant

    Does mx2 alredy features the Android fullscreen modes?

    I’d like my app to be in immersive mode..

    https://developer.android.com/training/system-ui/immersive

    #15058

    abakobo
    Participant

    I’ve partially solver the problem, but I can’t find a way to hide the navigation bar once it has been shown (except by “resuming” the app)
    Any help on how to “time” the navigation bar or make it disapear by simple touch is welcome!
    EDIT: mmm looks like sdl2 is eating the events before I can get them in monkey2game.java?

    modified monkey2game.java:

    #15064

    abakobo
    Participant

    onTouchEvent is definitely giving nothing, how can I get those events and hide the nav bar once it’s there? sdl2 must have this implemented, i’m missing something!?

    EDIT: had to use SYSTEM_UI_FLAG_IMMERSIVE_STICKY !

    I working fine now! Except when I call the keyboard, then the navbar will randomly disapear, or not. So I still need events or some jni magic to call my hide_ui() java method from mx2?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.