Hi,i'm new for developing android application...When i'm trying to
display google maps in emulator there is an error,,i installed the
application.but when i'm opening this error is coming "The application
***** stopped unexpectedly,please try again.-force close" The other
application which is not using the maps like facebook,that are running
normally. i'm developing using Eclipse.here is the source code
AndroidManifest.xml,MapMe.java and main.xml respectively.. pls guide
me..
My sys config:
windows 7,64 bit,
emulator is Google_API 10
Eclipse EE IDE

http://www.jameselsey.co.uk/blogs/techblog/android-how-to-display-a-map-the-easy-way/
from this link only i tried the application.--

SOURSE CODES:
AndroidManifest.xml::
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
     package="com.jameselsey.mapme"
     android:versionCode="1"
     android:versionName="1.0">
   <application android:label="MapMe" android:icon="@drawable/icon">
       <activity android:name="MapMe"
                 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" />
</manifest>

MapMe.java::
package com.jameselsey.mapme;

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

public class MapMe 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;
   }
}

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"
   >
<TextView
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:text="@string/hello"
   android:apiKey="0yKqyux1_CwihgyJqP6BttGJ_0Pnc9pvCQ9vmNA"
   />
</LinearLayout>



Pls help me!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to