Created
June 25, 2012 08:25
-
-
Save doxaras/2987358 to your computer and use it in GitHub Desktop.
Android SDK Quick Integration Guide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WarpRegistrar.subscribeAuto(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="your.package.name"> | |
| ... | |
| <!-- For WARP --> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
| <uses-permission android:name="your.package.name.permission.C2D_MESSAGE" /> | |
| <permission android:name="your.package.name.permission.C2D_MESSAGE" | |
| android:protectionLevel="signature" /> | |
| <!-- End for WARP --> | |
| ... | |
| <application | |
| android:icon="@drawable/ic_launcher" | |
| android:label="@string/app_name" | |
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <application | |
| android:icon="@drawable/ic_launcher" | |
| android:label="@string/app_name" | |
| > | |
| ... | |
| <!-- For WARP --> | |
| <service android:name="ly.warp.sdk.C2DMReceiver" /> | |
| <receiver android:name="ly.warp.sdk.C2DMWBroadcastReceiver" | |
| android:permission="com.google.android.c2dm.permission.SEND"> | |
| <!-- Receive the actual message --> | |
| <intent-filter> | |
| <action android:name="com.google.android.c2dm.intent.RECEIVE" /> | |
| <category android:name="your.package.name" /> | |
| </intent-filter> | |
| <!-- Receive the registration id --> | |
| <intent-filter> | |
| <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> | |
| <category android:name="your.package.name" /> | |
| </intent-filter> | |
| </receiver> | |
| <activity | |
| android:name="ly.warp.sdk.WarpViewActivity" | |
| android:label="@string/app_name" > | |
| </activity> | |
| <meta-data android:name="warp_sender_id" android:value="[email protected]" /> | |
| <meta-data android:name="warp_uuid" android:value="yourwarpuuidnumber" /> | |
| <!-- End for WARP --> | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- For WARP --> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
| <uses-permission android:name="com.niobiumlabs.testapp.permission.C2D_MESSAGE" /> | |
| <permission android:name="com.niobiumlabs.testapp.permission.C2D_MESSAGE" | |
| android:protectionLevel="signature" /> | |
| <!-- End for WARP --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment