我安装并测试了示例应用地理围栏检测。根据我的经验,我注册地理围栏保持位置服务On.Once我关闭位置服务应用程序关闭,并出现一个警告对话框不幸的是,“地理围栏检测已停止。好的。”。如果有人经历过这个,请解释我们如何阻止这个以及可能出现的问题。
11-24 15:46:14.813: E/AndroidRuntime(27963): FATAL EXCEPTION: IntentService[ReceiveTransitionsIntentService]
11-24 15:46:14.813: E/AndroidRuntime(27963): Process: com.example.android.geofence, PID: 27963
11-24 15:46:14.813: E/AndroidRuntime(27963): java.util.IllegalFormatConversionException: %d can't format java.lang.String arguments
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.badArgumentType(Formatter.java:1489)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.transformFromInteger(Formatter.java:1689)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.transform(Formatter.java:1461)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.doFormat(Formatter.java:1081)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.format(Formatter.java:1042)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.util.Formatter.format(Formatter.java:1011)
11-24 15:46:14.813: E/AndroidRuntime(27963): at java.lang.String.format(String.java:1999)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.content.res.Resources.getString(Resources.java:1505)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.content.Context.getString(Context.java:376)
11-24 15:46:14.813: E/AndroidRuntime(27963): at com.example.android.geofence.ReceiveTransitionsIntentService.onHandleIntent(ReceiveTransitionsIntentService.java:58)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.os.Handler.dispatchMessage(Handler.java:102)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.os.Looper.loop(Looper.java:146)
11-24 15:46:14.813: E/AndroidRuntime(27963): at android.os.HandlerThread.run(HandlerThread.java:61)