App go freeze when phone time out, SoundPressureLevel extension

My app monitors and records decibels using SoundPressureLevel.
When my phone reaches the set screen-off time and turns off, my app freezes and stops working.
What can I do to keep it working?

Try the KeepScreenOn method friom the tools extension
8

Taifun

OK Thank you. It keeps screen on but if you try to do something else on the phone the app freeze anyway.
But is enought for me.

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.


Attached block are only for Screen1. Screen2 is only for showing graphics of DB.
The app runs fine for as long as I want, but if I go to check WhatsApp, for example, it freezes and no longer responds to any commands. I just have to close it.

Stopping the clock and Starting again does not help... you can remove these blocks

The question is: how many milliseconds do your ringtone soundfiles have?
What is your clock timer interval?

Taifun

Sorry I sent you a simplefied blocks but were lost.

What happens if you try one of the example apps downloadable from here

And don't forget to answer the questions

Taifun


I tried the simple one. Looks that freeze as shown.

It seems to be a known issue. .
Try this fork

Taifun