1. Check out our companion app, Forums for Android! Download from Google Play

Android pause problem

Discussion in 'Application Development' started by joson, Jul 25, 2010.

  1. joson

    joson New Member
    Thread Starter
    5

    Jul 25, 2010
    1
    0
    5
    Hi all, I meet a serious problem:
    In my application, have a thread for check is need send keep-alive packet to server. if screen on, the thread is OK, else if screen off (onPause state) the thread like block at Thread.sleep(300L); sentence.
    I try use Object.wait, Timer, SystemClock.sleep and Service for resolve it, but no any harvest.

    More information log at this link:
    anddev.org • View topic - Android network problem under screen off

    please help me, thanks!
     

    Advertisement

Share This Page

Loading...