Kostya,
I _think_ the intent is well-formed. Here is the code I am using:
Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND );
Resources res = getResources();
String emailTo[] = { AppMetaData.DEVELOPMENT_EMAIL_ADDRESS };
String emailSubject = res.getString( R.string.app_name ) + " v" + appVersion +
" Debug Log";
emailIntent.putExtra( android.content.Intent.EXTRA_EMAIL, emailTo );
emailIntent.putExtra( android.content.Intent.EXTRA_SUBJECT, emailSubject
);
emailIntent.putExtra( android.content.Intent.EXTRA_STREAM, Uri.parse( "file://"
+ logger.getFileName() ) );
emailIntent.putExtra( android.content.Intent.EXTRA_TEXT,collectDeviceInfo() );
emailIntent.putExtra( android.content.Intent.EXTRA_TEXT, "The debug log is
attached." );
emailIntent.setType( "plain/text" );
startActivity( Intent.createChooser( emailIntent, "Send your email in:" ) );
Does this look correct?
The user claims that the my app is what is crashing. But I do not see
an error report in the marketplace and, although Flurry is hooked into
my Thread.setDefaultUncaughtExceptionHandler, I am not seeing errors
there either.
Thanks.
...Jake
>>>>> "KV" == Kostya Vasilyev <[email protected]> writes:
KV> Jake,
KV> The limit would be dependent on the application chosen by the
KV> user to handle the action (the user may have multiple email
KV> applications installed and configured).
KV> Assuming that your Intent is well-formed (do you set the mime
KV> type?), and it isn't your application crashing, it sounds like
KV> you discovered a bug in the user's preferred email client.
KV> -- Kostya
--
Jake Colman -- Android Tinkerer
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en