map display problem

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

map display problem

Postby sahil4187 » Sun May 10, 2009 5:45 am

Well i m sahil i m developing simple map application.
i have got the key from google for map API and i have added it in the main.xml file
and i also have set the internet and location's permissions
and my internet is also working.

but when i run the application it shows the error:
com.android.phone is not responding

my current sdk version is 1.0

here i m sending my code
this is my main.xml file

<?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"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0jrOJfe4IoMVokdgB4RzFxQbUadcfjqhuK2HsqA"
/>


</LinearLayout>


my menifest.xml file is
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.maps.basicMap"
android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">

<activity android:name=".MapActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:name="com.google.android.maps" />
</application>


<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>

</manifest>


my .java file is
package com.maps.basicMap;


import com.google.android.maps.MapView;

import android.os.Bundle;

public class MapActivity extends com.google.android.maps.MapActivity {
/** Called when the activity is first created. */
MapView mapView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


setContentView(R.layout.main);
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}



plz reply me.
sahil4187
Freshman
Freshman
 
Posts: 8
Joined: Thu Feb 12, 2009 9:51 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests