1. Are you ready for the Galaxy S20? Here is everything we know so far!

Need help with Android / Java development

Discussion in 'Developer Forums' started by N1GGA, Dec 9, 2020.

  1. N1GGA

    N1GGA Lurker
    Thread Starter

    Good afternoon, members of the forum. I have an application, with MainActivity, which starts a service when the application starts. The service sends a POST request to the server every 10 seconds. Everything is fine, requests are received, but only before the phone screen is locked. If the screen is locked, the service seems to stop completely, and when the screen is unlocked, the service resumes and requests start being sent. What could be the problem and how to solve it? Thanks in advance
    Android Studio, Java.
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...