vaibhav saxena
- Forum posts: 3
Dec 17, 2012, 9:54:00 AM via Website
Dec 17, 2012 9:54:00 AM via Website
watching android app development from eclipse.
There is no error in development phase but when running it , the LOGCAT gives the below error:
12-17 13:50:17.448: W/dalvikvm(729): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
12-17 13:50:17.478: E/AndroidRuntime(729): FATAL EXCEPTION: main
12-17 13:50:17.478: E/AndroidRuntime(729): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thenewboston.vrsaxena/com.thenewboston.vrsaxena.StartingPoint}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.access$600(ActivityThread.java:130)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.os.Handler.dispatchMessage(Handler.java:99)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.os.Looper.loop(Looper.java:137)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.main(ActivityThread.java:4745)
12-17 13:50:17.478: E/AndroidRuntime(729): at java.lang.reflect.Method.invokeNative(Native Method)
12-17 13:50:17.478: E/AndroidRuntime(729): at java.lang.reflect.Method.invoke(Method.java:511)
12-17 13:50:17.478: E/AndroidRuntime(729): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
12-17 13:50:17.478: E/AndroidRuntime(729): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-17 13:50:17.478: E/AndroidRuntime(729): at dalvik.system.NativeStart.main(Native Method)
12-17 13:50:17.478: E/AndroidRuntime(729): Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
12-17 13:50:17.478: E/AndroidRuntime(729): at com.thenewboston.vrsaxena.StartingPoint.onCreate(StartingPoint.java:22)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.Activity.performCreate(Activity.java:5008)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
12-17 13:50:17.478: E/AndroidRuntime(729): ... 11 more
Please HELP...
There is no error in development phase but when running it , the LOGCAT gives the below error:
12-17 13:50:17.448: W/dalvikvm(729): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
12-17 13:50:17.478: E/AndroidRuntime(729): FATAL EXCEPTION: main
12-17 13:50:17.478: E/AndroidRuntime(729): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thenewboston.vrsaxena/com.thenewboston.vrsaxena.StartingPoint}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.access$600(ActivityThread.java:130)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.os.Handler.dispatchMessage(Handler.java:99)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.os.Looper.loop(Looper.java:137)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.main(ActivityThread.java:4745)
12-17 13:50:17.478: E/AndroidRuntime(729): at java.lang.reflect.Method.invokeNative(Native Method)
12-17 13:50:17.478: E/AndroidRuntime(729): at java.lang.reflect.Method.invoke(Method.java:511)
12-17 13:50:17.478: E/AndroidRuntime(729): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
12-17 13:50:17.478: E/AndroidRuntime(729): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-17 13:50:17.478: E/AndroidRuntime(729): at dalvik.system.NativeStart.main(Native Method)
12-17 13:50:17.478: E/AndroidRuntime(729): Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
12-17 13:50:17.478: E/AndroidRuntime(729): at com.thenewboston.vrsaxena.StartingPoint.onCreate(StartingPoint.java:22)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.Activity.performCreate(Activity.java:5008)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
12-17 13:50:17.478: E/AndroidRuntime(729): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
12-17 13:50:17.478: E/AndroidRuntime(729): ... 11 more
Please HELP...
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.