Skip to content

Commit

Permalink
Added android manifest permission in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
obrand committed May 29, 2012
1 parent 0d66f4a commit f52d287
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Android/MacAddress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ in your html files.
2. Create a folder called 'com/phonegap/plugin/macaddress' within your project's src folder.
3. And copy the java file into that new folder.


<pre>
mkdir -p <your_project>/src/com/phonegap/plugin/macaddress
cp ./ResourcesPlugin.java <your_project>/src/com/phonegap/plugin/macaddress
</pre>

4. Add a plugin line to `res/xml/plugins.xml`
4. Set the permissions into the Android Manifest for accessing the mac address.

<pre>
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
</pre>

5. Add a plugin line to `res/xml/plugins.xml`

&lt;plugin name="MacAddress" value="com.phonegap.plugin.macaddress.MacAddressPlugin" /&gt;

Expand Down

0 comments on commit f52d287

Please sign in to comment.