setIdleTimer issues - at least for Android

Hi,

I’ve been wrestling with my app not entering suspended state when it should. I’ve found (in the daily build notes) something was done in build 2718 due to some problems with android 5.x devices, but I find the solution was not good at all.

Current situation:

  • using builds 2718+

  • app do not enter suspend mode in any android 5.x (including Kindle fire)

  • app works fine in earlier 4.4.2 android

  • using builds 2716-

  • app works fine in all devices I tested

          

This does not affect, I think, apps that do not use the idleTimer at all.

My app has a screen that uses setIdleTimer(–)  to disable the timer while it is the active screen.

I also added a setIdleTimer(true) in main.lua, before going to business.

The thing is, with most recent builds, the idle timer cannot be enabled with android 5.x. This is a no-go.

Any plans to address this?

Thanks in advance,

jaime

Can you put together a simple project that demonstrates the problem? If so you can file a bug report by putting your simple project including a config.lua, build.settings and any assets needed to build/run the project into a .zip file and use the “Report a bug” link at the top of the page.

Rob

Ops, I missed this reply, I’ll go and put together such a project, brb.

Ok, so I compiled a demo project and things have improved since my last test.

Now it works in the android versions I’ve been able to test, but fails in a Kindle Fire (with Fire OS 5.0.1). In this device, it never goes to sleep, but honestly I’m not sure if this is currently supported (but it is a modified android…) ?

Will it help if I report the bug, offer the source code, whatever ?

Best regards,

You should put your project that demos the bug into a .zip file (main.lua, config.lua, build.settings, and any files needed to run/build it.) and upload that zip file using the Report a Bug link at the top of the page. You will get an email confirmation from the bug tracker with a Case ID # in the subject. Please post that back here as a reference.

Rob

Ok, done, the case ID is 44090.

Thanks,

jaime

Can you put together a simple project that demonstrates the problem? If so you can file a bug report by putting your simple project including a config.lua, build.settings and any assets needed to build/run the project into a .zip file and use the “Report a bug” link at the top of the page.

Rob

Ops, I missed this reply, I’ll go and put together such a project, brb.

Ok, so I compiled a demo project and things have improved since my last test.

Now it works in the android versions I’ve been able to test, but fails in a Kindle Fire (with Fire OS 5.0.1). In this device, it never goes to sleep, but honestly I’m not sure if this is currently supported (but it is a modified android…) ?

Will it help if I report the bug, offer the source code, whatever ?

Best regards,

You should put your project that demos the bug into a .zip file (main.lua, config.lua, build.settings, and any files needed to run/build it.) and upload that zip file using the Report a Bug link at the top of the page. You will get an email confirmation from the bug tracker with a Case ID # in the subject. Please post that back here as a reference.

Rob

Ok, done, the case ID is 44090.

Thanks,

jaime