Problem solved temporary (Big project new issues appeared), thanks a lot
mate for the help.

On Thu, Feb 9, 2012 at 1:48 PM, Mohamed Gougam <[email protected]> wrote:

> Thanks indeed for the help mate, but why when i press the button
> "Startdetecting" to list the detected bluetooth deveices, the message
> doesnt stay stable, it comes and it goes very fast.
>
>
>
> On Thu, Feb 9, 2012 at 1:03 PM, Raghav Sood <
> [email protected]> wrote:
>
>> Your permissions should be outside the <application> node of the manifest.
>>
>> Thanks
>>
>>
>> On Thu, Feb 9, 2012 at 2:25 PM, Mohamed Gougam <[email protected]>wrote:
>>
>>> This is what is shown on the logcat:
>>>
>>> 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)
>>>
>>>
>>>
>>> And this is Manifest.XML file:
>>>
>>> <?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 <[email protected]> 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
>>>> [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
>>>>
>>>
>>>  --
>>> 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
>>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.androidactivist.org/ - Author
>> http://www.appaholics.in/ - Founder
>>
>>  --
>> 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
>>
>
>

-- 
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

Reply via email to