OSDN Git Service

ignore any exception in requestLocationUpdates
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 2 Sep 2010 07:01:28 +0000 (15:01 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 29 Oct 2010 07:45:16 +0000 (15:45 +0800)
location/java/android/location/LocationManager.java

index 9e4a16b..b831e60 100644 (file)
@@ -710,7 +710,7 @@ public class LocationManager {
                 mListeners.put(listener, transport);
                 mService.requestLocationUpdates(provider, minTime, minDistance, transport);
             }
-        } catch (RemoteException ex) {
+        } catch (Exception ex) {
             Log.e(TAG, "requestLocationUpdates: DeadObjectException", ex);
         }
     }