Hi all
i am trying to use google maps in my application, but its showing only
grids.Also when i try to launch the inbuilt Google maps, its showing
the error:
Network Failure: Need a working data connection

I am behind a proxy server and emulator's web browser is working fine
after putting the proxy setting in APN.
I searched a lot about this problem and end up with 2 reasons.Either i
have missed the INTERNET permission or my API key is wrong. But i have
confirmed both these things to be correct. i took my md5 fingerprint
from ~/.android/default.keystore and got the API key from google and
also put the INTERNET permission in file.

Plateform:
Ubuntu 10.04
Android 2.3
Eclipse helios

Here are my files
----------------------------------------------------------
MainFest.xml:
----------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="net.learn2develop.GoogleMaps"
      android:versionCode="1"
      android:versionName="1.0.0">
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
    <uses-library android:name="com.google.android.maps" />
        <activity android:name=".MapsActivity"
                  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>

-------------------------------------------------------------------
main.xml
-------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <com.google.android.maps.MapView
        android:id="@+id/mapView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:enabled="true"
        android:clickable="true"
        android:apiKey="0O6bwESFes86mTdVS-8fOETdbcA7dZd7Q069o5w"
        />

</RelativeLayout>


-----------------------------------------------------------------------
MapsActivity.java
-----------------------------------------------------------------------
package net.learn2develop.GoogleMaps;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;

public class MapsActivity 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() {
        return false;
    }
}

Plz help!! my work is stuck because of this.

-- 
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