android - Google Map View only shows grey tiles -


i followed online solutions nothing changes still keep getting grey tiles on map , map doesnt work...

the tutorials specify need api-key using md5 fingerprint, google codes doesnt accept , instead requires sha-1 fingerprint...

here's code:

main.java:

package com.thenewboston.googlemaps;   import android.os.bundle; import com.google.android.maps.mapactivity; import com.google.android.maps.mapview;   public class main extends mapactivity{  mapview map; @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.main);     map = (mapview)findviewbyid(r.id.mvmain);     map.settraffic(true);      if(map.isshown()){         system.out.println("test1");     }      map.setbuiltinzoomcontrols(true);     map.setsatellite(true); }  @override protected boolean isroutedisplayed() {     return false; } } 

main.xml:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"           android:orientation="vertical"           android:layout_width="fill_parent"           android:layout_height="fill_parent"     >   <com.google.android.maps.mapview         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:apikey="aizasyams_xsut-l-qlir6fuad0jfayrsbiv3bg"         android:id="@+id/mvmain"         /> </linearlayout> 

manifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="com.thenewboston.googlemaps"       android:versioncode="1"       android:versionname="1.0">  <uses-sdk android:minsdkversion="8"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_fine_location"/>   <application android:label="@string/app_name">     <uses-library android:name="com.google.android.maps"/>     <activity             android:name="main"             android:label="@string/app_name">         <intent-filter>             <action android:name="android.intent.action.main"/>             <category android:name="android.intent.category.launcher"/>         </intent-filter>     </activity>  </application> </manifest>  

note: im using linux , intellij idea , im developing on api 8 (old tutorials)

plz help

i can see bunch of stuff mising (like api key on manifest)

check http://www.vogella.com/articles/androidgooglemaps/article.html. may help. imo 1 better http://www.youtube.com/watch?v=awx5t-ewlpc


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -