Skip to content

Instantly share code, notes, and snippets.

@ndurell
Last active January 4, 2016 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ndurell/8588301 to your computer and use it in GitHub Desktop.
Save ndurell/8588301 to your computer and use it in GitHub Desktop.
The sample manifest shows what to include in your manifest for a SessionM integration.
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sessionm.sample"
android:versionCode="1"
android:versionName="1.0.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<!-- SessionM NOTE: These permissions are required for SessionM -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- SessionM NOTE: These permissions are optional -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:name="com.sessionm.sample.SampleSessionMApp"
android:allowBackup="true"
android:allowClearUserData="true"
android:icon="@drawable/coin1"
android:label="@string/app_name"
android:persistent="true" >
<!-- SessionM NOTE: include both your app id and your app secret here -->
<meta-data
android:name="com.sessionm.appid"
android:value="YOUR_APP_APP_ID_HERE" />
<meta-data
android:name="com.sessionm.secret"
android:value="YOUR_APP_SECRET_HERE" />
<activity
android:name="com.sessionm.sample.app.MainActivity"
android:background="@android:color/transparent"
android:backgroundDimEnabled="false"
android:configChanges="keyboard"
android:exported="true"
android:launchMode="standard"
android:screenOrientation="sensor"
android:windowContentOverlay="@null"
android:windowFullscreen="false"
android:windowIsTranslucent="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- SessionM NOTE: add these entries to your app. -->
<receiver android:name="com.sessionm.api.ConnectionReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" >
</action>
</intent-filter>
</receiver>
<activity
android:name="com.sessionm.ui.SessionMActivity"
android:configChanges="keyboard|orientation|screenSize"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
android:name="com.sessionm.ui.SessionMVideoActivity"
android:configChanges="keyboard|orientation|screenSize" />
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment