Phone auto turn off bluetooth

Hi, im having problem with Sony E2333 phone.
The thing is that when i start my app, it require the user to turn on bluetooth (of course). It actually turned on bluetooth on that phone but after a second then bluetooth is turned off automatically by the phone i guess.
That thing keep going like an endless loop, bluetooth keep turn on and off while app is running.
So i decided to use your estimote app on the store to see if that problem does happen on yours app, suprisingly that problem doen’t happen any more on your app.
I dont understand what is the different here between my app and yours.
i did declared ACCESS_COARSE_LOCATION on manifest file, follow your tutorial on the website.
So i hope you guys may be able to help me in this situation, thank a lot

Hi @Hanh_Vo,

did you also declare the Bluetooth permissions?

AndroidManifest.xml:

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

Hi @Ximun, i thought the SDk would auto add these permissions for me. I’ve read it on estimote’s github repo: “Bluetooth permissions are granted (android.permission.BLUETOOTH and android.permission.BLUETOOTH_ADMIN). This is done automatically if you use the Estimote SDK.”

Yes, but can you just try? We will be fixed :wink:

`It worked, thanks a lot @Ximun :smiley:

1 Like