java - MapView not showing up -


So I'm trying to get a map view to show in my app, but when I run it Map 'T Weight

I am following the "MapView tutorial" on the Android Developers page.

Any thoughts on what I'm doing wrong ?? Thanks for looking.

Below is clear.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "com.it.maps" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Uses-sdk android: minSdkVersion = "17" Android: targetSdkVersion = "17" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt; Use-permission Android: name = "com.google.android.providers.gsf.permission.READ_GSERVICES" /> & Lt; Use-enabled Android: glEVersion = "0x00020000" Android: required = "true" /> & Lt; Allow Android: name = "com.example.permission.MAPS_RECEIVE" Android: protectionLevel = "signature" /> & Lt; Usage-permission Android: name = "com.example.permission.MAPS_RECEIVE" /> & Lt; Apps Android: Icon = "@ Draubable / IC_Luncher" Android: label = "@ string / app_name" & gt; & Lt; Use-Library Android: name = "com.google.android.maps" /> & Lt; Meta-Data Android: name = "com.google.android.maps.v2.API_KEY" Android: value = "AIzaSyDgs5B5g2oizaQauB6yieC6aCp5-z0zrfc" /> & Lt; Activity Android: name = "com.it.maps.MainActivity" android: label = "@ string / app_name" & 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; / & Gt; & Lt; / Application & gt; & Lt; / Reveal & gt;   

Below is the XML file.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: name = "com.google.android.gms .maps .mapfragment "Android: Orientation =" vertical "& gt; & Lt; TextView android: id = "@ + id / textView1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "test map of derek" /> & Lt; com.google.android.maps.MapView xmlns: Android = "http://schemas.android.com/apk/res/android" Android: id = "@ + id / theme" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: clickable = "true" Android: APIOE = "AISSESDGS5B5G2OizaQBB6IIC 6ACP5GFFCCC" /> & Lt; / LinearLayout & gt;   

And this is my class.

  Import android.os.Bundle; Import Com.google.android.maps.MapActivity; Import com.google.android.maps.MapView; Public classroom main activity increases map activity {@ Override Public Recourse on Criket (Bundle Saved Instant) {Super. Contents (Saved Instantstate); SetContentView (R.layout.main); MapView View = (MapView) Find VVBID (R.A.Hemap); View.setBuiltInZoomControls (right); } @ Override Protected Boolean Harrayed Display () {// TODO Auto generated method stub returns false; You are using Google Maps v1 which is no longer maintained. Switch to Google Maps v2  



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -