Xamarin - Permissions


Advertisements


In Android, by default, no application has permissions to perform any operations that would have an effect on the user or the operating system. In order for an App to perform a task, it must declare the permissions. The App cannot perform the task until the permission are granted by the Android system. This mechanism of permissions stops applications from doing as they wish without the user’s consent.

Permissions are to be recorded in AndroidManifest.xml file. To add permissions, we double-click on properties, then go to Android ManRequired permissions will appear. Check the appropriate permissions you wish to add.

Access Checkin Properties

Camera − It provides permission to access the device’s camera.

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

Internet − It provides access to network resources.

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

ReadContacts − It provides access to read the contacts on your device.

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

ReadExternalStorage − It provides access to read and store data on an external storage.

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

Calendars − It allows an app access to the calendar on the user device and events. This permission can be dangerous, as it grants an app the ability to send emails to guests without the owner’s awareness. The syntax for adding this permission is as shown below −

<uses-permission android:name="android.permission-group.CALENADAR" /> 

SMS − An app with this permission has the ability to use the devices messaging services. It includes reading, writing, and editing SMS and MMS messages. Its syntax is as shown below.

<uses-permission android:name="android.permission-group.SMS" />

Location − An app with this permission can access the device’s location using the GPS network.

<uses-permission android:name="android.permission-group.LOCATION" /> 

Bluetooth − An app with this permission can exchange data files with other Bluetooth enabled devices wirelessly.

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


Advertisements
E-Books Store