On Mar 20, 2010, at 12:29 AM, TreKing wrote:
> Oh no, sorry, I misread your post. Thought you were adding a new Activity.
>
> In this case, again, posting the actual error you're getting is the best way
> to figure out what's wrong. What does the debugger / logcat output tell you?
Well, as I was bundling up the output of the debugger and logcat, I figured
out the issue. Thanks. *Well* back in the logcat output was the following
piece.
If you look in it, you'll see that it notes that I'd screwed up something in
my layout that requires a layout_width (and layout_height) that I had not
supplied. I'm now back to the process running, although not yet working. :-)
Thanks much... I'll be more careful to look through all of the logcat output
in situations like this in the future...
- Chris
03-20 21:47:15.002: DEBUG/AndroidRuntime(713): Shutting down VM
03-20 21:47:15.002: WARN/dalvikvm(713): threadid=3: thread exiting with
uncaught exception (group=0x4000fe70)
03-20 21:47:15.012: ERROR/AndroidRuntime(713): Uncaught handler: thread main
exiting due to uncaught exception
03-20 21:47:15.132: ERROR/AndroidRuntime(713): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.distal.aleboards/com.distal.aleboards.AleBoards}:
java.lang.RuntimeException: Binary XML file line #9: You must supply a
layout_width attribute.
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.os.Looper.loop(Looper.java:123)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread.main(ActivityThread.java:3948)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
java.lang.reflect.Method.invokeNative(Native Method)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
java.lang.reflect.Method.invoke(Method.java:521)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
dalvik.system.NativeStart.main(Native Method)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): Caused by:
java.lang.RuntimeException: Binary XML file line #9: You must supply a
layout_width attribute.
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3319)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:3399)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.widget.RelativeLayout$LayoutParams.<init>(RelativeLayout.java:840)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:761)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:52)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.Activity.setContentView(Activity.java:1626)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
com.distal.aleboards.AleBoards.onCreate(AleBoards.java:56)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
03-20 21:47:15.132: ERROR/AndroidRuntime(713): ... 11 more
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
To unsubscribe from this group, send email to
android-beginners+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.