Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an Intent so other apps can use Catlog to send logcat info via email #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 21, 2014

  1. Configuration menu
    Copy the full SHA
    4ce51dc View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2014

  1. Add an Intent so other apps can use Catlog to send logcat info via email

    This facility can be used by another app by doing something like this:
    
    Intent androidIntent = new
    Intent("com.nolanlawson.logcat.intents.SEND_EMAIL");
    
    androidIntent.putExtra("recipients", new String[]{"[email protected]"});
    androidIntent.putExtra("service", "email");  // Exchange email client,
    "gmail", etc. also possible
    androidIntent.putExtra("subject", "Logcat file from Android device");
    androidIntent.putExtra("device_info", true);
    androidIntent.putExtra("attachment", true);
    androidIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  // May be
    necessary
    
    startActivity(androidIntent);
    RenniePet committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    8193400 View commit details
    Browse the repository at this point in the history