Hi, My name is Davyd Melo and I am beginning with Bluetooth over Android. After creating a empty project and I have added the following line of code in the MainActivity:
BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); This generate the following exception in the Logcat: 04-14 20:46:56.711: ERROR/AndroidRuntime(1131): Uncaught handler: thread main exiting due to uncaught exception 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): java.lang.VerifyError: com.bluetoothonetester.MainActivity 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at java.lang.Class.newInstanceImpl(Native Method) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at java.lang.Class.newInstance(Class.java:1472) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.os.Looper.loop(Looper.java:123) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at android.app.ActivityThread.main(ActivityThread.java:4203) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at dalvik.system.NativeStart.main(Native Method) Whats the problem!?! I already add the permissions for Bluetooth usage and I have using the 2.1 SDK. Thanks! -- Davyd Bandeira de Melo - GREat Sun Certified Java Programmer 6.0 Email Pessoal: [email protected] GReat Mail: [email protected] Messenger: [email protected] -- 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 To unsubscribe, reply using "remove me" as the subject.

