Multiple permissions

16 views
Skip to first unread message

jam...@fastlaneinnovations.com

unread,
Nov 10, 2014, 10:43:38 AM11/10/14
to codenameone...@googlegroups.com
When adding multiple permissions in the build hints, I used the following key and values:
andriod.xpermissions                <uses-permission android:name="BLUETOOTH"/><uses-permission android:name="BLUETOOTH_ADMIN"/>

which results in the following line in codename_one.settings:
codename1.arg.android.xpermissions=<uses-permission android\:name\="BLUETOOTH"/><uses-permission android\:name\="BLUETOOTH_ADMIN"/>

When I install the build on the device, I get a permission error when I try to connect to Bluetooth. I'm pretty sure those two permissions are all that are needed, so I think I'm getting the syntax wrong on the build hints. Did I get the hint right?
 

Shai Almog

unread,
Nov 10, 2014, 11:18:21 AM11/10/14
to codenameone...@googlegroups.com, jam...@fastlaneinnovations.com
The syntax seems correct make sure that your quote marks " are indeed quotes and not the "pretty" quotes you might sometimes copy/paste from a document.
You can also build with include sources to see if it made it into the manifest.

jam...@fastlaneinnovations.com

unread,
Nov 10, 2014, 8:15:47 PM11/10/14
to codenameone...@googlegroups.com, jam...@fastlaneinnovations.com
It was a PBCAK error (problem between the chair and keyboard), I had left out the android.permission part that needs to precede the BLUETOOTH and BLUETOOTH_ADMIN. Sorry to consume your time with that one!
Reply all
Reply to author
Forward
0 new messages