Android Question How to start httputil2service in foreground while the app is in background?

toby

Well-Known Member
Licensed User
Longtime User
B4X:
Dim J As HttpJob
J.Initialize("J",Me)
J.PostString(url , data )

Wait For (j) JobDone(j As HttpJob)
Log(phpFile & ": j.GetString=" & j.GetString)

My app works fine in foreground; if I put it in the background by tapping Home button, after 3 successful httpjob calls, the app crashed with following error messages during the 4th httpjob call.

Could someone kindly give me som hint on how to fix the error, please?

TIA

 
Solution

You probably need to update your services to receivers..

toby

Well-Known Member
Licensed User
Longtime User
It has something to do with Android versions.
No problem on Android 8.0 while the problem exists on Android 12.
 
Upvote 0

GraemeW

Member
Licensed User
Longtime User

You probably need to update your services to receivers..
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…