java - Android InstallException: EOF Google MapsView "Hello Maps" -


eclipse isn't pointing out errors in code. got exception when tried run emulator. here's code.

hellogooglemaps.java

package com.example.hellogooglemaps;  import android.app.activity; import android.os.bundle; import com.google.android.maps.*; import android.widget.linearlayout; import android.widget.zoomcontrols;   public class hellogooglemaps extends mapactivity {     linearlayout linearlayout;     mapview mapview;     zoomcontrols mzoom;     /** called when activity first created. */     @override     public void oncreate(bundle savedinstancestate)     {             super.oncreate(savedinstancestate);             setcontentview(r.layout.main);     }       @override     protected boolean isroutedisplayed() {             return false;     }    } 

main.xml file:

<?xml version="1.0" encoding="utf-8"?> <com.google.android.maps.mapview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:apikey="my_api_key" //i have in program. not putting in post. 

/>

hellogooglemaps manifest

<?xml version="1.0" encoding="utf-8"?> 

<application android:icon="@drawable/icon" android:label="@string/app_name"> <uses-library android:name="com.google.android.maps" />     <activity android:name=".hellogooglemaps"               android:label="@string/app_name"               android:theme="@android:style/theme.notitlebar">          <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>  </application> 

edit debugging shows following:

error: user data image used emulator. aborting 

edit 2 console gives warning:

warning once: application, or library uses, using nsquickdrawview,    has been deprecated. apps should cease use of quickdraw , move quartz. 

edit 3 installs app quits unexpectedly in emulator.

close emulators. restart eclipse. refresh project. right click project, hover on android tools , select fix project properties. blank xml file didn't create , delete if exists.

one of these things should work.


Comments