Hi all
As you will guess I am a complete noob to Android dev by the fact that my issue is with a hellow world application.
I am working my way through a tutorial on hackaday.com (can't post the link yet).
I have written my code without any compile errors but when I run the app in my emulator all I get is and error saying "The appliacation has stopped unexpectedly"
I have scoured the tinterweb and tried a few things all to no avail. Looking through the LogCat I am getting permission errors (amongst others I'm unsure of yet). I'm hoping you guys and gals out there can assist.
I'm using Eclipse, My AVD is 2.1 and the LogCat information is as follows.
TIA for any help
Bren
01-12 22:21:23.905: D/AndroidRuntime(350): Shutting down VM
01-12 22:21:23.905: W/dalvikvm(350): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
01-12 22:21:23.925: E/AndroidRuntime(350): Uncaught handler: thread main exiting due to uncaught exception
01-12 22:21:23.935: E/AndroidRuntime(350): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.peakfreak.improvedhelloworld/com.peakfreak.improvedhelloworld.ImprovedHelloWorldActivity}: java.lang.ClassCastException: android.widget.EditText
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.os.Handler.dispatchMessage(Handler.java:99)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.os.Looper.loop(Looper.java:123)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-12 22:21:23.935: E/AndroidRuntime(350): at java.lang.reflect.Method.invokeNative(Native Method)
01-12 22:21:23.935: E/AndroidRuntime(350): at java.lang.reflect.Method.invoke(Method.java:521)
01-12 22:21:23.935: E/AndroidRuntime(350): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-12 22:21:23.935: E/AndroidRuntime(350): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-12 22:21:23.935: E/AndroidRuntime(350): at dalvik.system.NativeStart.main(Native Method)
01-12 22:21:23.935: E/AndroidRuntime(350): Caused by: java.lang.ClassCastException: android.widget.EditText
01-12 22:21:23.935: E/AndroidRuntime(350): at com.peakfreak.improvedhelloworld.ImprovedHelloWorldActivity.onCreate(ImprovedHelloWorldActivity.java:24)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-12 22:21:23.935: E/AndroidRuntime(350): ... 11 more
01-12 22:21:23.985: I/dalvikvm(350): threadid=7: reacting to signal 3
01-12 22:21:23.985: E/dalvikvm(350): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
As you will guess I am a complete noob to Android dev by the fact that my issue is with a hellow world application.
I am working my way through a tutorial on hackaday.com (can't post the link yet).
I have written my code without any compile errors but when I run the app in my emulator all I get is and error saying "The appliacation has stopped unexpectedly"
I have scoured the tinterweb and tried a few things all to no avail. Looking through the LogCat I am getting permission errors (amongst others I'm unsure of yet). I'm hoping you guys and gals out there can assist.
I'm using Eclipse, My AVD is 2.1 and the LogCat information is as follows.
TIA for any help
Bren
01-12 22:21:23.905: D/AndroidRuntime(350): Shutting down VM
01-12 22:21:23.905: W/dalvikvm(350): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
01-12 22:21:23.925: E/AndroidRuntime(350): Uncaught handler: thread main exiting due to uncaught exception
01-12 22:21:23.935: E/AndroidRuntime(350): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.peakfreak.improvedhelloworld/com.peakfreak.improvedhelloworld.ImprovedHelloWorldActivity}: java.lang.ClassCastException: android.widget.EditText
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.os.Handler.dispatchMessage(Handler.java:99)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.os.Looper.loop(Looper.java:123)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-12 22:21:23.935: E/AndroidRuntime(350): at java.lang.reflect.Method.invokeNative(Native Method)
01-12 22:21:23.935: E/AndroidRuntime(350): at java.lang.reflect.Method.invoke(Method.java:521)
01-12 22:21:23.935: E/AndroidRuntime(350): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-12 22:21:23.935: E/AndroidRuntime(350): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-12 22:21:23.935: E/AndroidRuntime(350): at dalvik.system.NativeStart.main(Native Method)
01-12 22:21:23.935: E/AndroidRuntime(350): Caused by: java.lang.ClassCastException: android.widget.EditText
01-12 22:21:23.935: E/AndroidRuntime(350): at com.peakfreak.improvedhelloworld.ImprovedHelloWorldActivity.onCreate(ImprovedHelloWorldActivity.java:24)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-12 22:21:23.935: E/AndroidRuntime(350): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-12 22:21:23.935: E/AndroidRuntime(350): ... 11 more
01-12 22:21:23.985: I/dalvikvm(350): threadid=7: reacting to signal 3
01-12 22:21:23.985: E/dalvikvm(350): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
