Android Question Error opening app after service call

Danilo Gaglioti

Member
Licensed User
I'm having a problem, I created a service that runs every 30 seconds, everything works fine, notifications arrive right okay ...

The problem is as follows, every 30 seconds ie at each service execution interval the app crashes the home screen, it must close and open again to work ... does anyone know why?

I need to avoid this error that only occurs after each service call ...

This is an instant messaging app, and no error can occur when opening ... help me

WhatsApp Image 2017-03-31 at 14.54.28 (1).jpeg
 

Danilo Gaglioti

Member
Licensed User
Detail all this only hangs with the app closed, when opening again has to open 2x to work, only after the service has been processed or is every 30 seconds ..
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
You can not use WhatsApp like everybody else?

I think you have to post some of the service code to understand why blocking the device
 
Upvote 0

Danilo Gaglioti

Member
Licensed User
This app is just for learning, I am studying this very interesting B4A software, so I take small projects like this very simple to learn ... if you can help thanks
 

Attachments

  • Starter.bas
    2.1 KB · Views: 163
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi Danilo,

looks you're using the default "Starter" service a the service awakened every 30s. There are a few posts discouraging this practice. You should use Starter for initialization chores (DBes, lists, maps..) while using a separate service as the one where you put your StartAt (and similar) statements.

Just my 2c.
 
Upvote 0
Top