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
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:
<manifest> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> </manifest>
You can read more about uses-permission on the Android Developers web site.