Skip to content

Instantly share code, notes, and snippets.

@nayansuthar
Created October 29, 2012 09:12
Show Gist options
  • Save nayansuthar/3972523 to your computer and use it in GitHub Desktop.
Save nayansuthar/3972523 to your computer and use it in GitHub Desktop.
helpshift initialization android
<activity android:name="com.helpshift.HelpshiftActivity" android:theme="@style/HSBottomAnimTheme" />
<activity android:name="com.helpshift.HSAddIssue" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSAddProfile" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSIssues" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSMessages" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSQuestionsList" android:theme="@style/HSRightAnimTheme" />
<activity android:name="com.helpshift.HSQuestion" android:theme="@style/HSRightAnimTheme" />
hs.clearBreadCrumbs();
hs.leaveBreadCrumb("Went to Preferences Screen");
private Handler countHandler = new Handler() {
public void handleMessage(Message msg) {
super.handleMessage(msg);
Log.d("Notification Count", msg.toString());
}
};
hs.install(getApplicationContext(),
"<YOUR_API_KEY>",
"<yourcompany>.helpshift.com",
"<YOUR_APP_ID>");
final Helpshift hs = new Helpshift();
hs.setDeviceIdentifier("user-id-100");
hs.setUsername("John");
hs.setEmail("john@helpshift.com");
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment