How to add Android Permission to build file

Hey guys,
so in my game i use “system.vibrate()” currently when running on the device, when this is called it causes the app to crash, ive been told that its because you need to get permission from the device.

as you can see in this thread:
http://developer.anscamobile.com/forum/2011/07/24/systemvibrate-causes-crash

they say “You need android.permission.VIBRATE in your build.settings”

im sure this is very simple, but i cant get it to work, i add that text in my build settings file and it causes the orientation of my app to go screwy.

here is what my build file looks like
[lua]settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeLeft”, “landscapeRight”
}
}
}[/lua]

any help would be great, thanks [import]uid: 19620 topic_id: 13379 reply_id: 313379[/import]

Have a look at our documentation here…
http://developer.anscamobile.com/content/configuring-projects#Orientation_Support_Android
[import]uid: 32256 topic_id: 13379 reply_id: 49087[/import]

Notice in the above link’s example that you must create an “androidPermissions” table within the “settings” table. [import]uid: 32256 topic_id: 13379 reply_id: 49088[/import]

Thank you again, i got that working. You live up to your last name as far as responding to forum posts =P [import]uid: 19620 topic_id: 13379 reply_id: 49097[/import]

I’m happy to help! :slight_smile: [import]uid: 32256 topic_id: 13379 reply_id: 49100[/import]