1. macmitt2300's Avatar
    I am a new android developer, I have published and app already and I'm releasing more and more updates, recently I wanted to add bluetooth into my app so i found the example app, bluetooth chat, I've copied all the code over to my app, set it as main for now in my manifest, that's not the problem but everytime i start the app I get this as my log cat, i remind you that I only coppied the code word for word, except i did change a layout to a different name,


    Code:
    08-20 18:04:13.160: D/AndroidRuntime(9810): Shutting down VM
    08-20 18:04:13.160: W/dalvikvm(9810): threadid=1: thread exiting with uncaught exception (group=0x40acf228)
    08-20 18:04:13.160: E/AndroidRuntime(9810): FATAL EXCEPTION: main
    08-20 18:04:13.160: E/AndroidRuntime(9810): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mittereder.rockpaper/com.mittereder.rockpaper.BLUETOOTHCHAT}: java.lang.ClassNotFoundException: com.mittereder.rockpaper.BLUETOOTHCHAT
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread.access$600(ActivityThread.java:139)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.os.Looper.loop(Looper.java:154)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread.main(ActivityThread.java:4945)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at java.lang.reflect.Method.invokeNative(Native Method)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at java.lang.reflect.Method.invoke(Method.java:511)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at dalvik.system.NativeStart.main(Native Method)
    08-20 18:04:13.160: E/AndroidRuntime(9810): Caused by: java.lang.ClassNotFoundException: com.mittereder.rockpaper.BLUETOOTHCHAT
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1039)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2101)
    08-20 18:04:13.160: E/AndroidRuntime(9810): 	... 11 more
    08-20-2012 05:12 PM
LINK TO POST COPIED TO CLIPBOARD