Android App quits when go to Camera/Photo Album - Need to read system variable to solve it

Hi.

It is well known that if a Android user has the option “Do not keep activities” checked in the device settings (Settings -> Developer options -> Do not keep activities), any application that uses access to the camera or Photo Album will by closed by the system as soon as the application go to the camera/album.

I noticed that some games, to prevent that problem, identifies if the user has that option checked and if so, it shows an alert to the user as the image below (click in the image to see it in full res).

[sharedmedia=core:attachments:364]

I searched in internet and appears that the system variable that provides the info if that option is checked or not is the Settings.Global.ALWAYS_FINISH_ACTIVITIES

Does Corona provides a way to me to read that variable so I can alert the user to unchecked it if the case? 

(I have a game that creates a puzzle using the user’s photo from the Album/Camera and when the user has that option checked, the game is closed by the system. So when the user select his picture and goes back to the game, the game starts from the beginning, making impossible to the user to create the puzzle. That problem is making the game users to leave bad reviews of my games in the store because they think that my game does not work.)

Thanks,

Renato

Related links: 

http://stackoverflow.com/questions/11649949/how-to-know-dont-keep-activities-is-enabled-in-ics

http://developer.android.com/reference/android/provider/Settings.Global.html#ALWAYS_FINISH_ACTIVITIES

Any news?

This is on our list of things to do but we haven’t gotten to it yet and I can’t give you a firm date.

Any news?

This is on our list of things to do but we haven’t gotten to it yet and I can’t give you a firm date.

Any news now?

Is there a bug report that I can use to check with engineering?  If not can you file one and post the bug number back here?

Thanks

Rob

Hi Rob.

Thanks your reply. I don’t have a bug report for this request, because my request it is actually a new feature (be able to read Settings.Global.ALWAYS_FINISH_ACTIVITIES ).

Thanks anyway.

Any news now?

Is there a bug report that I can use to check with engineering?  If not can you file one and post the bug number back here?

Thanks

Rob

Hi Rob.

Thanks your reply. I don’t have a bug report for this request, because my request it is actually a new feature (be able to read Settings.Global.ALWAYS_FINISH_ACTIVITIES ).

Thanks anyway.