How can I run samle "home"

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

How can I run samle "home"

Postby DavidLau » Sun Oct 11, 2009 10:15 am

I'm going to learn developing for Android/Ophone platfrom. I've already downloaded and installed Android SDK. Later I wrote some program,In china,maybe home is a good direction. I got the home's code from the sdk's samples, in eclipse,any is ok,but run on Emulator.


Sorry!
The application Home Sample(process com.android....)has stopped unexpectedly.please try again.

Force close

I try,try,but cannot do.

Here is log

Code: Select all
10-11 09:09:22.416: INFO/ActivityManager(576): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x10200000 comp={android/com.android.internal.app.ResolverActivity} }
10-11 09:09:27.985: INFO/ActivityManager(576): Displayed activity android/com.android.internal.app.ResolverActivity: 5519 ms
10-11 09:09:30.154: INFO/ActivityManager(576): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x13a00000 comp={com.gswift.android/com.gswift.android.home} }
10-11 09:09:33.155: DEBUG/AndroidRuntime(739): Shutting down VM
10-11 09:09:33.174: WARN/dalvikvm(739): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
10-11 09:09:33.214: ERROR/AndroidRuntime(739): Uncaught handler: thread main exiting due to uncaught exception
10-11 09:09:33.504: ERROR/AndroidRuntime(739): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gswift.android/com.gswift.android.home}: android.view.InflateException: Binary XML file line #41: Error inflating class com.example.android.home.ApplicationsStackLayout
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.os.Looper.loop(Looper.java:123)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread.main(ActivityThread.java:3948)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at java.lang.reflect.Method.invokeNative(Native Method)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at java.lang.reflect.Method.invoke(Method.java:521)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at dalvik.system.NativeStart.main(Native Method)
10-11 09:09:33.504: ERROR/AndroidRuntime(739): Caused by: android.view.InflateException: Binary XML file line #41: Error inflating class com.example.android.home.ApplicationsStackLayout
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:575)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.Activity.setContentView(Activity.java:1626)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at com.gswift.android.home.onCreate(home.java:120)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     ... 11 more
10-11 09:09:33.504: ERROR/AndroidRuntime(739): Caused by: java.lang.ClassNotFoundException: com.example.android.home.ApplicationsStackLayout in loader dalvik.system.PathClassLoader@43594078
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.createView(LayoutInflater.java:465)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564)
10-11 09:09:33.504: ERROR/AndroidRuntime(739):     ... 20 more
10-11 09:09:33.725: INFO/Process(576): Sending signal. PID: 739 SIG: 3
10-11 09:09:33.725: INFO/dalvikvm(739): threadid=7: reacting to signal 3
10-11 09:09:34.724: INFO/dalvikvm(739): Wrote stack trace to '/data/anr/traces.txt'
10-11 09:09:40.487: WARN/ActivityManager(576): Launch timeout has expired, giving up wake lock!
10-11 09:09:41.219: WARN/ActivityManager(576): Activity idle timeout for HistoryRecord{43787d58 {com.gswift.android/com.gswift.android.home}}
10-11 09:09:46.974: DEBUG/dalvikvm(656): GC freed 551 objects / 28888 bytes in 714ms
10-11 09:12:49.374: DEBUG/dalvikvm(576): threadid=17: bogus mon 1+0>0; adjusting
10-11 09:13:47.276: DEBUG/dalvikvm(576): threadid=31: bogus mon 1+0>0; adjusting



Could someone help me?
A chinese man
DavidLau
Freshman
Freshman
 
Posts: 3
Joined: Fri Aug 14, 2009 9:31 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests