I am very new to android programming. I am trying to make an application that uses bluetooth connectivity that connects with a chip transfers data. I set up the bluetooth connection but the program wont run it comes up with the "this program has closed unexpectedly" I have read some stuff on log cat but i still can't figure it out. Could somebody please tell me what my error is?
Here is my LogCat:
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): FATAL EXCEPTION: main
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.joshi.remotedoc/com.joshi.remotedoc.Remote_DocActivity}: java.lang.InstantiationException: com.joshi.remotedoc.Remote_DocActivity
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.os.Handler.dispatchMessage(Handler.java:99)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.os.Looper.loop(Looper.java:123)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at java.lang.reflect.Method.invokeNative(Native Method)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at java.lang.reflect.Method.invoke(Method.java:521)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at dalvik.system.NativeStart.main(Native Method)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): Caused by: java.lang.InstantiationException: com.joshi.remotedoc.Remote_DocActivity
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at java.lang.Class.newInstanceImpl(Native Method)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at java.lang.Class.newInstance(Class.java:1429)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
08-10 12:29:52.693: ERROR/AndroidRuntime(2575): ... 11 more
08-10 12:29:52.693: WARN/ActivityManager(1074): Force finishing activity
Her's my main activity class