Android平板电脑 - 你好世界

时间:2012-02-12 04:40:44

标签: android tablet

我有一个三星Galaxy选项卡10.1 3G + WiFi版本与Android 3.2。我想为平板电脑版写一些程序,但我的Android模拟器有些问题。这是我的设置如下:
1)Eclipse SDK ver 3.7.1
2)Java JDK ver 1.6.0_25
3)Android Development Toolkit ver 16.0.1.v201112120204-238534
4)Dalvik Debug Monitor Service ver 16.0.1.v201112150204-238534

BA3TPHello的项目属性(项目名称为BA3TPHello)
1)项目构建目标 - > Abdroid 3.1

AVD详情:

Target: Android 3.1 (API level 12) 
Skin : WXGA 
SD Card: 256M
hw.lcd.density : 160 
hw.keyboard.lid : no 
vm.heapSize: 48 
hw.ramSize: 512
package com.apress.ba3tp.hello;
import com.apress.ba3tp.hello.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class Hello extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
  }

  public void clickHello(View view) {
    Toast.makeText(this, "Hello", Toast.LENGTH_SHORT).show();
  }
}

我在模拟器上出现“强制关闭”错误。这是Console的一些日志。

[2012-02-12 12:55:24 - BA3TPHello] Android Launch!
[2012-02-12 12:55:24 - BA3TPHello] adb is running normally.
[2012-02-12 12:55:24 - BA3TPHello] Performing hello.hello activity launch
[2012-02-12 12:55:24 - BA3TPHello] Automatic Target Mode: launching new emulator with compatible AVD 'HoneyComb'
[2012-02-12 12:55:24 - BA3TPHello] Launching a new emulator with Virtual Device 'HoneyComb'
[2012-02-12 12:55:30 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-02-12 12:55:30 - BA3TPHello] New emulator found: emulator-5554
[2012-02-12 12:55:30 - BA3TPHello] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-12 12:56:53 - BA3TPHello] HOME is up on device 'emulator-5554'
[2012-02-12 12:56:53 - BA3TPHello] Uploading BA3TPHello.apk onto device 'emulator-5554'
[2012-02-12 12:56:53 - BA3TPHello] Installing BA3TPHello.apk...
[2012-02-12 12:58:08 - BA3TPHello] Success!
[2012-02-12 12:58:09 - BA3TPHello] Starting activity hello.hello on device emulator-5554
[2012-02-12 12:58:11 - BA3TPHello] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.apress.ba3tp.hello/hello.hello }

我从LogCat登录。如何发布附件? 我不知道如何从LogCat检查日志。

LogCat - > http://www.mediafire.com/?28r79b5y432qd2z

AndroidManifest.xml - > http://www.mediafire.com/?9m1bkgyzk949hsn

如何解决此错误?

0 个答案:

没有答案