コード例 #1
0
 public void initLocationProvider() {
   if (GoogleServiceLocationProvider.isAvailable()) {
     LocationProvider.getInstance().init(new GoogleServiceLocationProvider());
   } else {
     LocationProvider.getInstance().init(new AndroidNativeLocationProvider());
   }
 }
コード例 #2
0
 public void resetLocationProviderByRawGps() {
   LocationProvider.getInstance().stop();
   LocationProvider.getInstance().init(new AndroidNativeLocationProvider());
 }