Sunday, February 27, 2011

Permissions and Android

One of the most important things to remember while programming for Android is to remember to ask for permission before doing things :-) If you do not ask for permissions to use different features on the OS, your program will crash without a very sensible error. You can ask for permissions in AndroidManifest.xml file.


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

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

No comments:

Post a Comment