I have one map activity in my application which uses a map view
inflated from XML. Registered for an API key, and all works well,
etc... However, the map activity is registered in my manifest to be
started with two intents, VIEW and PICK. Most use cases of the
application start the activity with the VIEW intent, and rarely the
PICK intent.
On the occasion when I attempt to display the Map activity through the
PICK intent using startActivityForResult() however (after having
previously viewed it successfully through VIEW), the map displays a
blank screen of X's. Thereafter, any use of the map activity, whether
through VIEW or PICK results in the same, even after restarting the
application process. The only solution is to completely uninstall the
application and reinstall. Then it works again until the map is
started through PICK again. I suspect this is somehow related to the
map api key since it persists across sessions until uninstalled.
Log:
INFO/ActivityManager(64): Starting activity: Intent
{ action=android.intent.action.VIEW comp={...Map} }
INFO/MapActivity(11594): Handling network change
notification:CONNECTED
ERROR/MapActivity(11594): Couldn't get connection factory client
INFO/ActivityManager(64): Displayed activity ...Map: 808 ms
(map displays properly... then...)
INFO/ActivityManager(64): Starting activity: Intent
{ action=android.intent.action.PICK comp={...Map} (has extras) }
WARN/MapActivity(11594): Recycling dispatcher
com.google.common.datarequestdispatc...@4309f7e0
VERBOSE/MapActivity(11594): Recycling map object.
INFO/MapActivity(11594): Handling network change
notification:CONNECTED
ERROR/MapActivity(11594): Couldn't get connection factory client
INFO/ActivityManager(64): Displayed activity ...Map: 304 ms
(map will not display until a full uninstall/reinstall)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---