Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android应用程序Android键盘(进程中的com.Android.inputmethod.latin)没有响应_Java_Android_Google Maps - Fatal编程技术网

Java Android应用程序Android键盘(进程中的com.Android.inputmethod.latin)没有响应

Java Android应用程序Android键盘(进程中的com.Android.inputmethod.latin)没有响应,java,android,google-maps,Java,Android,Google Maps,我有一个示例应用程序Android 2.1谷歌地图(2.1)应用程序。当我运行文件时,我遇到一个无法修复的错误,需要一些帮助。我不完全确定问题出在哪里,所以这里是我在活动中创建的代码 public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mapView = (MapVie

我有一个示例应用程序Android 2.1谷歌地图(2.1)应用程序。当我运行文件时,我遇到一个无法修复的错误,需要一些帮助。我不完全确定问题出在哪里,所以这里是我在活动中创建的代码

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mapView = (MapView)findViewById(R.id.mapView);
        mapView.setBuiltInZoomControls(true);
        mapView.setSatellite(false);
        mapView.setStreetView(true);
        mapController = mapView.getController();
        mapController.setZoom(13);
        getLastLocation();
        animateToCurrentLocation();
        //added to include overlays in here
        //List<Overlay> mapOverlays = mapView.getOverlays();
        //Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
        //MapItemizedOverlay itemizedoverlay = new MapItemizedOverlay(drawable, this);
        //GeoPoint coordinates are specified in microdegrees (degrees * 1e6). The OverlayItem constructor accepts the 
        //GeoPoint location, a string for the item's title, and a string for the item's snippet text, respectively.
        //GeoPoint point = new GeoPoint(19240000,-99120000);
        //OverlayItem overlayitem = new OverlayItem(point, "Hola, Mundo!", "I'm in Mexico City!");
        //try adding another one 
        //GeoPoint point2 = new GeoPoint(35410000, 139460000);
        //OverlayItem overlayitem2 = new OverlayItem(point2, "Sekai, konichiwa!", "I'm in Japan!");
        //All that's left is to add this OverlayItem to your collection in the MapItemizedOverlay
        //instance, then add the HelloItemizedOverlay to the MapView:
        //itemizedoverlay.addOverlay(overlayitem);
        //itemizedoverlay.addOverlay(overlayitem2);
        //mapOverlays.add(itemizedoverlay);
    } 

我对Android还是一个新手,所以不幸的是我无法解释这些错误,但是我在我的应用程序中遇到了同样的错误,没有导致安装失败


有时重新启动AVD为我解决了安装失败的问题,但我不知道原因。

该解决方案似乎是暂时的。事实上,我希望有人能给你一个好的解释;这对我也有好处^^
 [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] ------------------------------
    [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] Android Launch!
    [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] adb is running normally.
    [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] Performing com.shawnbe.mallfinder.MallFinderActivity activity launch
    [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] Automatic Target Mode: launching new emulator with compatible AVD 'MAPPAPI2'
    [2012-08-04 17:38:41 - com.shawnbe.mallfinder.MallFinderActivity] Launching a new emulator with Virtual Device 'MAPPAPI2'
    [2012-08-04 17:38:42 - com.shawnbe.mallfinder.MallFinderActivity] New emulator found: emulator-5554
    [2012-08-04 17:38:42 - com.shawnbe.mallfinder.MallFinderActivity] Waiting for HOME ('android.process.acore') to be launched...
    [2012-08-04 17:39:36 - com.shawnbe.mallfinder.MallFinderActivity] HOME is up on device 'emulator-5554'
    [2012-08-04 17:39:36 - com.shawnbe.mallfinder.MallFinderActivity] Uploading com.shawnbe.mallfinder.MallFinderActivity.apk onto device 'emulator-5554'
    [2012-08-04 17:39:46 - com.shawnbe.mallfinder.MallFinderActivity] Failed to install com.shawnbe.mallfinder.MallFinderActivity.apk on device 'emulator-5554': timeout
    [2012-08-04 17:39:46 - com.shawnbe.mallfinder.MallFinderActivity] Launch canceled!