Created
February 1, 2012 22:17
-
-
Save PanosJee/1719821 to your computer and use it in GitHub Desktop.
oss-android-1
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
// If you want to use BugSense for your fork, register with | |
// them and place your API key in /assets/bugsense.txt | |
// (This prevents me receiving reports of crashes from forked | |
// versions which is somewhat confusing!) | |
try { | |
InputStream inputStream = getAssets().open("bugsense.txt"); | |
String key = Utils.ReadInputStream(inputStream); | |
key=key.trim(); | |
Log.d("TAG", "Using bugsense key '"+key+"'"); | |
BugSenseHandler.setup(this, key); | |
} catch (IOException e) { | |
Log.d("TAG", "No bugsense keyfile found"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment