app crashes with bad connection

All your problems with Audio, Video and Images.

app crashes with bad connection

Postby seanyc111 » Tue Mar 22, 2011 11:44 am

i have an audio streaming app that crashes when for example: it is connected to wifi or 3g but the connection is too bad to play the audio after about 10 - 15 seconds the force close message pops up, if you press wait it just pops back up in a few seconds. what code can i use to stop this??

i already have it set that if it has no internet connection a toast message pops up and tells you you have no connection.
seanyc111
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Oct 13, 2010 11:10 am

Top

Re: app crashes with bad connection

Postby strider2023 » Fri Apr 01, 2011 8:28 am

You can use the connection manager to get if the device is currnetly online or not inside a thread. Based on the connectivity status you can either stream the audio or you can throw an error message and stop the streaming process in the background.
strider2023
Senior Developer
Senior Developer
 
Posts: 126
Joined: Tue Mar 02, 2010 6:34 am
Location: Chennai, India

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests