开发者

How to get Android app not to force close after returning from Google Maps Intent?

I'm calling an Intent to Google Maps from an item in a ListView in my app. After I'm done lookin开发者_如何学JAVAg at the address in Google Maps, I press Back which pushes the Map from the address I sent in the Intent to user's current location then Back again to return to the app.

For some reason, my app force closes once I go back. This ONLY happens when GPS is off. Just to clarify, this is an Intent to Google Maps, not a MapView. Oddly enough, LogCat isn't showing anything useful.

Any ideas?

Edit: LogCat shows these likely relevant messages:

W/PhoneWindow(26285): Previously focused view reported id 16908298 during save, but can't be found during restore.
W/dalvikvm(26285): threadid=1: thread exiting with uncaught exception (group=0x4001d7e0)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜