Why does my app crash when there is slow internet connection?

Mahima Aggarwal

New member
Nov 20, 2014
0
0
0
App crashes when there is slow internet connection

My Android application work fine if my phone use fast WiFi internet or fast mobile network, but when I use slow 2G mobile internet of my cell operator the pop up show that "App isn't working" I want to detect slow internet connection and want to show pop up"Slow internet connection"... I am using the following code to get regular updates of location..

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,400,1, this);

What function or what method should I use to show user that there is a slow internet connection..
 

Forum statistics

Threads
955,924
Messages
6,966,102
Members
3,163,428
Latest member
blanke