Thanks a lot Charlie Collins,

What is the mistake I did is, I already have the MAP API key, but in
my XML, some letters of the key are missing, After you said, I again
checked and found out that. Now perfectly alright.

Thanks
Nithin

On Apr 14, 4:23 pm, Charlie Collins <[email protected]> wrote:
> I can use maps fine in the emulator.
>
> You have the perms right, and you are pulling in the maps application,
> but you didn't say whether or not you have your key, and are using it
> in the layout file. You do have the key though right? And in your
> MapView layout file you have android:apiKey with that value, right?
>
> "In order to display Google Maps data in a MapView, you must register
> with the Google Maps service and obtain a Maps API Key. For
> information about how to get a Maps API Key, see Obtaining a Maps API
> Key.
> Once you have a Maps API Key, you need to reference it from a special
> attribute -- android:apiKey -- in the MapView element in the XML
> layout. If you are instantiating a MapView directly from code, you
> should pass the Maps API Key in the MapView constructor. "
>
> On Apr 13, 9:06 pm, Nithin <[email protected]> wrote:
>
> > Thanks MrChaz for your reply.
>
> > So this issue is not for me alone. Earlier I put "Coarse location"
> > only, and is not working, so I just changed to "Fine location", still
> > its not working. I am trying this for some time. Now, I will put both
> > and will try, want to see any difference is  there.
>
> > Thanks
> > Nithin
>
> > On Apr 14, 1:34 am, MrChaz <[email protected]> wrote:
>
> > > You could try adding the permission for course location but to be
> > > honest it doesn't work on my emulator so once I got it working on an
> > > actual device I just left it.
>
> > > On Apr 13, 8:11 pm, Nithin <[email protected]> wrote:
>
> > > > i did both these already...
>
> > > > my i got map API and put all permissions in manifest
>
> > > > <uses-permission android:name="android.permission.INTERNET"/>
> > > > <uses-permission
> > > > android:name="android.permission.ACCESS_FINE_LOCATION" />
> > > >  <uses-library android:name="com.google.android.maps" />
>
> > > > still its showing his error, what may be the reason..
>
> > > > Thanks
> > > > Nithin
>
> > > > On Apr 13, 11:04 pm, Charlie Collins <[email protected]>
> > > > wrote:
>
> > > > > Also make sure you have a maps key, the error message you are getting
> > > > > look unrelated, but just check that to make sure.
>
> > > > >http://code.google.com/android/maps-api-signup.html
>
> > > > > On Apr 13, 1:17 pm, nithin warier <[email protected]> wrote:
>
> > > > > > Hi, I tried to display map in emulator. But its showing just tiles 
> > > > > > only. I
> > > > > > am attaching the screenshot and the log message is like this.
>
> > > > > > 04-13 22:30:06.934: INFO/ActivityManager(48): Start proc org.me.map 
> > > > > > for
> > > > > > activity org.me.map/.MapAct: pid=615 uid=10022 gids={3003} 04-13
> > > > > > 22:30:06.944: DEBUG/dalvikvm(607): VM cleaning up 04-13 
> > > > > > 22:30:06.954:
> > > > > > DEBUG/dalvikvm(607): LinearAlloc 0x0 used 541500 of 4194304 (12%) 
> > > > > > 04-13
> > > > > > 22:30:06.976: ERROR/dalvikvm(607): pthread_setspecific failed, 
> > > > > > err=22 04-13
> > > > > > 22:30:07.425: INFO/System.out(615): #### #### Setting locale to 
> > > > > > en_US 04-13
> > > > > > 22:30:07.466: WARN/Maps_Persistence(615): Couldn't find file:
> > > > > > /data/data/org.me.map/files/DATA_Preferences 04-13 22:30:07.545:
> > > > > > INFO/jdwp(615): received file descriptor 27 from ADB 04-13 
> > > > > > 22:30:07.645:
> > > > > > WARN/Maps_Persistence(615): Couldn't find file:
> > > > > > /data/data/org.me.map/files/DATA_Tiles 04-13 22:30:07.675:
> > > > > > WARN/Maps(615): Couldn't
> > > > > > restore map info, data == null 04-13 22:30:07.995: 
> > > > > > INFO/MapActivity(615):
> > > > > > Handling network change notification:CONNECTED 04-13 22:30:08.015:
> > > > > > ERROR/MapActivity(615): Couldn't get connection factory client 04-13
> > > > > > 22:30:08.194: INFO/ActivityManager(48): Displayed activity
> > > > > > org.me.map/.MapAct: 1400 ms
>
> > > > > > Please tell whats wrong with this, My source code is very simple, I 
> > > > > > ididnt
> > > > > > try anything special,
>
> > > > > > public class MapAct extends MapActivity { /** Called when the 
> > > > > > activity is
> > > > > > first created. */ @Override public void onCreate(Bundle 
> > > > > > savedInstanceState)
> > > > > > { super.onCreate(savedInstanceState); 
> > > > > > setContentView(R.layout.main); }
> > > > > > @Override protected boolean isRouteDisplayed() { // TODO 
> > > > > > Auto-generated
> > > > > > method stub return false; } }
>
> > > > > > Thanks
> > > > > > Nithin
> > > > > > nithinwarier.blogspot.com
> > > > > > +919739146701
>
> > > > > >  map.bmp
> > > > > > 3112KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to