Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does MapView show grey tiles and not the map?
    primarykey
    data
    text
    <p>Ok, so I got my SHA1 fingerprint by creating a batch file. After that, I went to the "Services" page and enabled Google Maps API v2 and v3. I also went to the "API Access" page and created a new Android Key with the SHA1;PACKAGENAME. After this, I went to my project folder and added the following code:</p> <pre><code>&lt;permission android:name = "com.example.test.permission.MAPS_RECEIVE" android:protectionLevel = "signature" /&gt; &lt;uses-feature android:glEsVersion = "0x00020000" android:required = "true" /&gt; &lt;uses-permission android:name="com.example.test.permission.MAPS_RECEIVE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;uses-library android:name="com.google.android.maps" /&gt; &lt;meta-data android:name = "com.google.android.maps.v2.API_KEY" android:value = "APIKEY" /&gt; </code></pre> <p>I also created an XML file and pasted the following code:</p> <pre><code>&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_MV" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:clickable = "true" android:apiKey = "APIKEY" /&gt; </code></pre> <p>After compiling and running the project on my HTC One X+, I saw nothing more than bunch of grey tiles. I also tried to use a MapView in code as shown below:</p> <pre><code>/******************************************************************** * ONCREATE * ********************************************************************/ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView( R.layout.general_layout ); MapView mapView = new MapView( GamePage.this, "APIKEY" ); MapController mc = mapView.getController(); String coordinates[] = {"1.352566007", "103.78921587"}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); GeoPoint p = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6) ); mc.animateTo(p); mc.setZoom(17); FrameLayout fl = ( FrameLayout ) findViewById(R.id.general_frameHolder_FL); fl.addView(mapView); } </code></pre> <p>I get to see the following error:</p> <pre><code>Couldn't get connection factory client </code></pre> <p>Can anyone tell me what the hell I'm doing wrong!?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload