The log from DDMS looks like this:
04-23 16:46:28.862: ERROR/AndroidRuntime(216): Uncaught handler:
thread main exiting due to uncaught exception
04-23 16:46:29.079: ERROR/AndroidRuntime(216):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.adamcarruthers.multitude/
com.adamcarruthers.multitude.Multitude}:
android.view.InflateException: Binary XML file line #21: Error
inflating class com.adamcarruthers.TapPlotDrawer
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.os.Handler.dispatchMessage(Handler.java:99)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.os.Looper.loop(Looper.java:123)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread.main(ActivityThread.java:4363)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
java.lang.reflect.Method.invokeNative(Native Method)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
java.lang.reflect.Method.invoke(Method.java:521)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
dalvik.system.NativeStart.main(Native Method)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): Caused by:
android.view.InflateException: Binary XML file line #21: Error
inflating class com.adamcarruthers.TapPlotDrawer
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.Activity.setContentView(Activity.java:1622)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
com.adamcarruthers.multitude.Multitude.onCreate(Multitude.java:88)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): ... 11 more
04-23 16:46:29.079: ERROR/AndroidRuntime(216): Caused by:
java.lang.ClassNotFoundException: com.adamcarruthers.TapPlotDrawer in
loader dalvik.system.pathclassloa...@43d03158
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.createView(LayoutInflater.java:466)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
04-23 16:46:29.079: ERROR/AndroidRuntime(216): ... 21 more
I especially don't like the whole "...21 more" part.
Is this what you were looking for TreKing? Thanks for replying right
away, I appreciate it.
On Apr 23, 2:01 pm, "~ TreKing" <[email protected]> wrote:
> On Thu, Apr 22, 2010 at 8:56 PM, sudo.adam
> <[email protected]>wrote:
>
> > I was attempting to add a custom view in XML, but I kept getting
> > force closes.
>
> Looking at the debug output and showing what the stack trace is when you get
> this force close would be step #1 in getting a good response.
>
> ---------------------------------------------------------------------------
> ----------------------
> TreKing - Chicago transit tracking app for Android-powered
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en