Skip to content

Instantly share code, notes, and snippets.

@thenrich
Last active August 29, 2015 14:11
Show Gist options
  • Save thenrich/e92364e6f17bef15f4c1 to your computer and use it in GitHub Desktop.
Save thenrich/e92364e6f17bef15f4c1 to your computer and use it in GitHub Desktop.
AndroidManifest.xml for Gate Opener Android App
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="YOURPACKAGE.gateopener" >
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<receiver android:name=".Receiver" >
<intent-filter>
<action android:name="YOURPACKAGE.gateopener.WIDGET_BUTTON" />
</intent-filter>
</receiver>
<receiver android:name=".GateOpener" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/gate_opener_info" />
</receiver>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment