Wednesday, 15 February 2012

android - Google map is not showing on emulator -


About 10 months ago I worked on a small project that was related to Google Map. To work, I first created MD-5 and signed up to get my API key. This project was successful at the time that opened in Google Inc API-10

But lately, I found out that I got the permission file in the manifest file (Internet permission and Google Maps), then was modified into .xml file and the main Expanded mapping in java. I think at least one map should be seen from the unchanged method. Since there is no mistake, only show IAE as a grid. Those grids can be zoomed but there is no map. Atlas, after a tutorial, but I did not get any errors and the result was the same. No map.

I do not know why thanks in advance.

  package com.my.goog; Import Com.google.android.maps.MapActivity; Importroid.os.Bundle; Import android App Import android.view.Menu; Public category map map extends {@ Override Public Empty on Crate (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.map); } @ Override Protected Boolean Herald Display () {// TODO Auto-Generated Method Stub Return False; }} & Lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Com.google.android.maps.MapView xmlns: android = "http://schemas.android.com/apk/res/android" Android: id = "@ + ID / mapview" Android: layout_width = "fill_parent" Android: Layout_height = "fill_parent" android: clickable = "true" android: apiKey = "0 n 81 sdd3 frjkeifefwevwev9g391zkfn6ii-a" /> & Lt; - Manifest - & gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "com.my.goog" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Use-sdk android: minSdkVersion = "5" Android: targetSdkVersion = "15" /> Android: Android: Android: Android: Android: Theme = "@ Style / Aaptim" & gt; & Lt; Use-Library Android: name = "com.google.android.maps" /> & Lt; Activity Android: name = "map." Android: label = "@ string / title_activity_map" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Use-Library Android: name = "com.google.android.maps" /> & Lt; / Application & gt;   

`

As Raghunathan said in his comment, You can do as explained: Do not use an emulator with Google Maps API v2:

If you get an error message:

This app will not run without Google Play services, which are missing from your phone.

You can try the following question, where some people have been able to work it out:

No comments:

Post a Comment