-4
我想要Android中的條形圖。我嘗試了一些代碼,但出現以下錯誤。任何一個可以在android中爲條形圖提供不同的代碼?我想在Android的條形圖嘗試一些代碼,但我得到以下錯誤。任何人可以在android中有不同的條形碼代碼?
05-16 10:34:53.572: ERROR/AndroidRuntime(465): Uncaught handler: thread main exiting due to uncaught exception
05-16 10:34:53.595: ERROR/AndroidRuntime(465): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.drawline/com.android.drawline.SalesBarChart}: java.lang.ClassCastException: com.android.drawline.SalesBarChart
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.os.Looper.loop(Looper.java:123)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread.main(ActivityThread.java:4363)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at java.lang.reflect.Method.invokeNative(Native Method)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at java.lang.reflect.Method.invoke(Method.java:521)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at dalvik.system.NativeStart.main(Native Method)
**05-16 10:34:53.595: ERROR/AndroidRuntime(465): **Caused by: java.lang.ClassCastException**: com.android.drawline.SalesBarChart**
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
05-16 10:34:53.595: ERROR/AndroidRuntime(465): ... 11 more
如果您發佈已有的代碼,您可能會得到更好的回覆... – forsvarir 2011-05-16 05:20:02