Add an Intent so other apps can use Catlog to send logcat info via email#45
Open
RenniePet wants to merge 2 commits into
Open
Add an Intent so other apps can use Catlog to send logcat info via email#45RenniePet wants to merge 2 commits into
RenniePet wants to merge 2 commits into
Conversation
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[]{"some@email.com"});
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);
Owner
|
No prob, I'll combine them all together. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorry, my GitHub skills are approx. zero. I think this pull request probably includes the one I sent you yesterday.
Anyway, I've added an Intent to Catlog so other apps can use it to send logcat info by email. It's not as good as I was hoping - the user is still prompted by the email program to click on Send. I would prefer that it was completely automatic, but that is apparently not possible, or at least not easy.
Hope you can use this.