Android: Application permissions

The applications sometimes need special permission – access to your camera, read your contacts,… Without setting the permissions the application cannot access to them. In the Manifest file we can declare them with the uses-permission.

A list of permissions defined by the base platform can be found at android.Manifest.permission.

The Access Control application will require the internet connection (to send and receive data from the server). The second requirement was that the application must work only when the internet connection is available.

I needed two permissions:
INTERNET – Allows applications to open network sockets
ACCESS_NETWORK_STATE – Allows applications to access information about networks

An example of the AndroidManifest.xml file:

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

You can read more about uses-permission on the Android Developers web site.

Leave a Reply