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...
Similar Threads - Need help Android
  1. eaglepep
    Replies:
    12
    Views:
    410
  2. hk1337
    Replies:
    0
    Views:
    875
  3. Abstractify
    Replies:
    1
    Views:
    882
  4. Jacques Wegier
    Replies:
    12
    Views:
    683
  5. astromaz
    Replies:
    0
    Views:
    449
  6. Stampede
    Replies:
    1
    Views:
    582
  7. Adnan fiaz
    Replies:
    5
    Views:
    430
  8. noman naseer
    Replies:
    8
    Views:
    1,853
  9. Arun Ramesh
    Replies:
    1
    Views:
    347
  10. yoyoitsyourboy
    Replies:
    0
    Views:
    345

Share This Page

Loading...