Strange api-key problem

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Strange api-key problem

Postby shiteiru » Wed Mar 11, 2009 2:11 pm

Hi there!

I've got a weird problem.
I obtained a google maps-key. This key (at least it seems so) is working just fine.
Hower the key only works if i launch a standalone map-application.

Meaning if the first/starting activity is a mapactivity the mapview is just fine. Everything works and there are no problems at al.

But if i try to start a mapactivity/mapview out of another activity e.g. launching it from a mulitple choice window i get a maps_persistence error as follows:

[code02-15 18:21:05.737: WARN/Maps_Persistence(1466): Couldn't find file: /data/data/com.SC.UI/files/DATA_Preferences

02-15 18:21:05.847: WARN/Maps_Persistence(1466): Couldn't find file: /data/data/com.SC.UI/files/DATA_Tiles

02-15 18:21:05.898: WARN/Maps(1466): Couldn't restore map info, data == null [/code]

Can anyone help me out with this?
Junior Developer
Junior Developer
Posts: 23
Joined: Tue May 20, 2008 7:16 pm


Postby ashish » Thu Mar 19, 2009 6:18 am

the error which u are getting is just fine....because sometime i also get this error but my mapview get displayed.

if your mapview is in another activity and u want to call from some other activity....

u can do like this.......

Intent myIntent = new Intent(this,Googlemap.class);

i don't think there should be any problem.....
Experienced Developer
Experienced Developer
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests