Android - disable full screen

Hi all,

I need to remove the full screen setting for my Rhomobile 4.1 app, the user needs to be able to view their battery level without leaving our app. There is a setting in rhoconfig which is full_screen but setting this to 0 does not change it.

I have seen posts about this, but it appears that none of them were resolved.

Thank you

Kutir Mobility
Hi MarcusIts possible and I

Hi Marcus

Its possible and I used it before in fullscreen and non fullscreen mode.

Can you do a rake clean:android and try to build again ?

Thanks

Visnupriya R

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bart Fukkink
Hey Marcus,I can confirm that

Hey Marcus,

I can confirm that the sollution provided by Visnupriya here is working correctly, but you do have to do a rake clean:android before you build.


After that the result will look like this:

@Visnupriya: Would it be an idea to put a note for this in the docs? That you need to do a clean before changing this setting works?

Either here: Rhomobile | Runtime Application Configuration or here: Rhomobile | Build for Android would be a good place to put it in my oppinion. Also the clean command for Android seems to be missing in the "Build for Android" page.

Bart

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Hi Bart,That's a nice

Hi Bart,

That's a nice suggestion :-) .

We will send a pull request by writing the changes.

Visnupriya R

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Marcus Atkins
Hi,Thank you for your

Hi,

Thank you for your response. I am using V4.1.1. I have tried clean and rebuilding etc and even creating a blank project but I still get the same result.

I am doing this on a Motorola TC55 and also a Samsung S4.

Which version of RMS are you using?

Is there anything else that could be causing it to stay fullscreen?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Marcus Atkins
Just an update:1. I have set

Just an update:

1. I have set the rhoconfig.txt to full_screen = 0, cleaned and rebuilt

2. I have set the rhoconfig.txt to full_screen = 1, cleaned and rebuilt

3. Started a fresh project and did both of the above

I have had no joy with either of these.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bart Fukkink
Hey Marcus,We are using RMS 4

Hey Marcus,

We are using RMS 4.1.1 aswell. I also found another setting. In our Build.yml we have the following setting in our Android part:

android:

  android_title: 0

I am not entirely sure that has anything to do with it (We have it there still after migrating from RMS2) but since this works for us, we wont want to touch it. Could you give it a try with the rhoconfig option "full_screen = 0" and the build.yml option "android_title: 0"?

I hope this helps,

Bart

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Marcus Atkins
Hi Bart,Okay hmm. The android

Hi Bart,

Okay hmm. The android title is just a title bar that would appear under the native android top bar.

I have tried this too and I am receiving the same results.

Maybe it is something to do with the android version I'm using. What version of android are you building for?

Regards,

Marcus Atkins

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Robert Galvin
Can you share your full build

Can you share your full build.yml as well as the build log and application log after launch?

thanks.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bart Fukkink
Hey Marcus,We have no

Hey Marcus,

We have no specified Android version in our application. We do however suggest our customers to use Android 4.2 or higher and we have seen this functionality work for these devices.

These devices include: HTC One (M7 and M8), Nexus 4, Motorola Moto G and the OnePlus One. I sadly cannot remember if we had everything correctly working on Samsung device (We didnt complete a test since we are having some database problems on these devices and we want to fix these first).

Bart

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Hi Marcus,We will try to run

Hi Marcus,

We will try to run it locally and let you know. In the mean time, can you share your build.yml and log file as suggested by



Visnupriya R

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments