Two things. Calling putExtra twice with the same key is worthless, as only the latest will be kept (you can think of intent extras as a hash map). Don't remember if extra_email is supposed to be an array.
Your code calls collectDeviceInfo - if it crashes, your code will not send email. Or one of the strings you concatenate could be null somehow, same effect. The rest looks OK (although I'm already falling asleep, so could miss something). I would do two things: - ask the user if he sees the email application open (or the Chooser dialog), or if he never gets to that point; also ask him to note the package name in the force close dialog. - ask the user to install one of several logcat collecting apps from Market and send you the crash report through it. 24.03.2011 0:50 пользователь "Jake Colman" <col...@ppllc.com> написал: > > 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 <kmans...@gmail.com> 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en