02-08 13:17:23.112: D/AndroidRuntime(4389): Shutting down VM
02-08 13:17:23.112: W/dalvikvm(4389): threadid=1: thread exiting with uncaught exception (group=0xb570e298)
02-08 13:17:23.112: E/AndroidRuntime(4389): FATAL EXCEPTION: main
02-08 13:17:23.112: E/AndroidRuntime(4389): java.lang.SecurityException: Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has android.permission.BLUETOOTH_ADMIN.
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.os.Parcel.readException(Parcel.java:1260)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.os.Parcel.readException(Parcel.java:1248)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:612)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:581)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.mgo.helloandroid.UIdrawingActivity.onClick(UIdrawingActivity.java:79)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.view.View.performClick(View.java:2408)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.view.View$PerformClick.run(View.java:8818)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.os.Handler.handleCallback(Handler.java:587)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.os.Handler.dispatchMessage(Handler.java:92)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.os.Looper.loop(Looper.java:123)
02-08 13:17:23.112: E/AndroidRuntime(4389): at android.app.ActivityThread.main(ActivityThread.java:4627)
02-08 13:17:23.112: E/AndroidRuntime(4389): at java.lang.reflect.Method.invokeNative(Native Method)
02-08 13:17:23.112: E/AndroidRuntime(4389): at java.lang.reflect.Method.invoke(Method.java:521)
02-08 13:17:23.112: E/AndroidRuntime(4389): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
02-08 13:17:23.112: E/AndroidRuntime(4389): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-08 13:17:23.112: E/AndroidRuntime(4389): at dalvik.system.NativeStart.main(Native Method)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.mgo.helloandroid"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="3" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".UIdrawingActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
</application>
</manifest>
On Thu, Feb 9, 2012 at 2:19 AM, Wenshan <renws1990@gmail.com> wrote:
Could you please put the whole error message from logcat here?
What you've provided is not sufficient.
Cheers,
Wenshan
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment