In our application, we send emails with some html in them. This works great on every โregularโ Android device, but when I send these emails from Kindle Fire, it seems that by the time the email arrived, the mime encoding was changed from text / html to text / plain.
When the email is first created in the mail client on the Kindle, you can see that href was installed because the linked text is in blue and not in plain black.
I tried the K-9 email client for Fire to make sure it matters, but there are no changes. Here is a sample code from our shared email app (I use the device manufacturer to determine whether to use Google Play or Amazon links on the market):
Shareable shareable = new ShareableApp(Build.MANUFACTURER); final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getString(R.string.share_app_email_subject)); emailIntent.putExtra( android.content.Intent.EXTRA_TEXT, Html.fromHtml(getString(R.string.share_email_content, "<a href=\"" + NetworkQuery.HTTP + shareable.getShareHost() + "/" + shareable.getSharePath() + "\">" + shareable.getShareTitle() + "<//a>") + "<br><br>" + this.getString(R.string.share_email_description))); final PackageManager pm = getActivity().getPackageManager(); final List<ResolveInfo> emailers = pm.queryIntentActivities(emailIntent, PackageManager.GET_RESOLVED_FILTER); if (emailers.size() > 0) { startActivity(Intent.createChooser(emailIntent, "Email:")); } else { displayMessage(R.string.dialog_message_no_email_client); }
Is there a way to get the html email sent correctly from Kindle Fire?
Edit
If I send an HTML letter to Kindle Fire, I can send it somewhere else, and the Mime encoding will be saved. It seems that setType ("text / html") is not saved when the letter is actually created on the Kindle.
source share