I heard that some devices allow app in background communicate but some
devices not
在 2013-11-25 AM6:55,"pierre" <[email protected]>写道:

> I am having networking issues in idle mode (when the screen is off).
> I have attached a test program called BeepTester, in order to explain my
> difficulties.
> This test program allows to start a service that in turn starts:
> => a periodic timer that sends a short UDP packet (to port 7000) to the
> localhost, every 4 seconds,
> => a thread that listens to the UDP port 7000 and that produces a beep
> sound after packet reception.
>
> On wakeup mode, everything goes fine, there is one beep every 4 seconds.
> In "idle" mode it depends on which device we use:
> On a Samsung Galaxy Note I, it works OK as in the wakeup mode.
> On a Samsung Galaxy S4, it stops working once the screen goes off (there
> are exceptions: we may hear some beeps occasionally, and not regularly).
> I have also tried to use various kinds of wavelocks (not included in the
> attached test) but It was not really effective.
>
> Is it normal?
> And do we need to use wakelocks in order to do networking in idle mode?
>
>   Pierre
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to