Hi,
This is the right way to do it.
Did you remember to add the appropriate permissions to your
AndroidManifest.xml?
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Hope this helps
/Yaron
On 01/07/2013 10:47 AM, abhay_401 wrote:
Hi,
I tried something like this:
| BluetoothAdapter bt= BluetoothAdapter.getDefaultAdapter();
I am using the function like this
bt.enable() and bt.disable() which is not working....?
Is there any alternate way to do this...?
|
On Monday, January 7, 2013 4:52:59 AM UTC+5:30, TreKing wrote:
On Sun, Jan 6, 2013 at 1:13 PM, Abhilash baddam
<[email protected] <javascript:>> wrote:
Is it possible to turn on/off Bluetooth programmatically in
Android...?
Have you tried a google search? This seems like a common query.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> -
Chicago transit tracking app for Android-powered devices
--
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
--
Yaron Reinharts
Smart Drive Applications
http://www.poncho.co.il/gateaway.php
https://market.android.com/details?id=com.poncho.gsm.gate.activities
--
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