Does your UDP receive code work fine if the browser is not running?

On Jul 26, 4:52 am, Heidi Zhou Nolan <[email protected]>
wrote:
> I am implementing a UDP application on Android.
>
> The problem I have is that, on the sender side of the UDP connection,
> the sender sends around 2 packets every 40 milliseconds; the receiver
> side of the UDP connection uses java.net.DatagramSocket.receive(...)
> function to receive data over the network in a while loop. The
> receiver receives 2 packets roughly every 40 milliseconds. While our
> Android application is running, the internet browser is launched and
> start downloading/retrieving webpage. The receive(...) function won't
> return any data until the browser stop its downloading. I did a
> measurement that the receive(...) function returns data after almost
> 700 milliseconds. It seems that all the packets to our application are
> hold until the browser is done with its network activity.
>
> I am looking for the solution to still receive data over the network
> even there is other application sends or receive data over network at
> the same time. It would be better if the solution can make our
> application have higher priority in using the network.
>
> Thank you in advance for your help.

-- 
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

Reply via email to