When you declare ...
"mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
minTime, minDistance , mGPSLocationListner);"
go to method " @Override
                                public void onStatusChanged(String provider, 
int status, Bundle
extras) {
                                        // TODO Auto-generated method stub

                                } "

OR
"@Override
                                public void onProviderDisabled(String provider) 
{
                                        // TODO Auto-generated method stub
                                        
Toast.makeText(getApplicationContext(),provider
+":ProviderDisable", Toast.LENGTH_LONG).show();
                                }"

Both Method of LocationListner and write what do you want to do when
the Provider GPS changes the status !!

On 21 Ott, 13:40, "A N K ! T" <ankit.awasth...@gmail.com> wrote:
> i have developed an app which just notify when location changed...
> it used GPS_PROVIDERS as provider..
> but as devices go inside of some building. it stop listening ..
> i want to change the provider at that time to network provider..
> so should i write locationManager.requestLocationUpdate method there in
> status change method of listener.with provider to network provider...
> or something else will do the task...
>
> --
>
>  A N K ! T......

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to