Created
October 29, 2012 09:12
-
-
Save nayansuthar/3972523 to your computer and use it in GitHub Desktop.
helpshift initialization android
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
| hs.leaveBreadCrumb("Went to Preferences Screen"); |
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
| private Handler countHandler = new Handler() { | |
| public void handleMessage(Message msg) { | |
| super.handleMessage(msg); | |
| Log.d("Notification Count", msg.toString()); | |
| } | |
| }; |
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
| hs.install(getApplicationContext(), | |
| "<YOUR_API_KEY>", | |
| "<yourcompany>.helpshift.com", | |
| "<YOUR_APP_ID>"); |
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
| final Helpshift hs = new Helpshift(); |
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
| hs.setDeviceIdentifier("user-id-100"); |
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
| hs.setUsername("John"); | |
| hs.setEmail("[email protected]"); |
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
| <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