Skip to content

Instantly share code, notes, and snippets.

@misto
Last active October 11, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misto/3938488 to your computer and use it in GitHub Desktop.
Save misto/3938488 to your computer and use it in GitHub Desktop.
private void log(String qrCode) {
Intent intent = new Intent("ch.appquest.intent.LOG");
if (getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).isEmpty()) {
Toast.makeText(this, "Logbook App not Installed", Toast.LENGTH_LONG).show();
return;
}
// Achtung, je nach App wird etwas anderes eingetragen
String logmessage = ...
intent.putExtra("ch.appquest.logmessage", logmessage);
startActivity(intent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment