Android Question App stops working with Android Marshmallow

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

My customers and now upgrading to Android Marshmallow and my app stops working.

Is B4A going to be make compatible with that version of Android soon?

Truly,
Emad
 

rleiman

Well-Known Member
Licensed User
Longtime User
Hi aaronk,

My development phone has KitKat so I can't test the problem all my customers are having with Marshmallow. They tell me the new doze feature is stopping the app. My app uses timers that part of the app is running in a service module. I think that the service module is being stopped when the doze feature kicks in.
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi arronk,

It's started in the foreground with the following code so it doesn't look like that's causing it to stop.

B4X:
Service.StartForeground(1, nNotify)
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I'm using this code to start the service:

B4X:
StartService(serviceChimes)

If I need to use a partial or full wake lock, what should the code look like to do that?

Thanks.
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Erel,

Based upon this response from one of my customers who have other apps like mine, I would like to find out if B4A will allow me to set up an alarm and to have that alarm execute another sub routine in another module. If this can be done, can you show me the needed coding to achieve that?

Here is what my customer wrote:

On Lollipop+ devices chimes are set as alarm clock. This is mandatory on Android M devices - otherwise chimes will be affected by Doze (battery saving mode). On some Samsung devices such setting fixes chimes being delayed by 2-4 minutes. Unfortunately this new setting adds alarm clock icon on right side of status bar

You can use old option to set chimes but they might be affected by battery saving mode (Android M)".
 
Upvote 0
Top