Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created February 1, 2012 22:17
Show Gist options
  • Save PanosJee/1719821 to your computer and use it in GitHub Desktop.
Save PanosJee/1719821 to your computer and use it in GitHub Desktop.
oss-android-1
// 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