Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Tablet - hello world
    primarykey
    data
    text
    <p>I have a samsung galaxy tab 10.1 3G+WiFi version with Android 3.2. I would like to write some program for the tablet version, but I have some problem with Android emulator. Here is my setting as follow:<br> 1) Eclipse SDK ver 3.7.1<br> 2) Java JDK ver 1.6.0_25<br> 3) Android Development Toolkit ver 16.0.1.v201112120204-238534<br> 4) Dalvik Debug Monitor Service ver 16.0.1.v201112150204-238534<br></p> <p>Project Properties for BA3TPHello (the name of project is BA3TPHello)<br> 1) Project Build Target -> Abdroid 3.1<br></p> <p>AVD detail:</p> <blockquote> <pre><code>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 </code></pre> </blockquote> <pre><code>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(); } } </code></pre> <p>I have "Force Close" error on the emulator. Here is some log from Console.</p> <pre><code>[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 } </code></pre> <p>And I've log from LogCat. How do I post attach file? I don't know how to check the log from LogCat.</p> <p>LogCat -> <a href="http://www.mediafire.com/?28r79b5y432qd2z" rel="nofollow" title="data from LogCat">http://www.mediafire.com/?28r79b5y432qd2z</a></p> <p>AndroidManifest.xml -> <a href="http://www.mediafire.com/?9m1bkgyzk949hsn" rel="nofollow" title="AndroidManifest.xml">http://www.mediafire.com/?9m1bkgyzk949hsn</a></p> <p>How do I fix this error?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload