Android5.1-email app open MHT file Flash back
Log as follows:
07-16 01:58:54.966:e/androidruntime (14224): java.lang.RuntimeException:Unable to start activity
Componentinfo{com.android.email/com.android.mail.browse.emlvieweractivity}:
Java.lang.IllegalStateException:You need to use a theme.appcompat Theme (or descendant) with this activity.
As you can see, a theme.appcompat theme is needed
Find emlvieweractivity related definitions in androidmanifest.xml ; see Theme using Unifiedemailtheme
1 < Activity 2 Android:name = "Com.android.mail.browse.EmlViewerActivity" 3 android:label= "@string/app_name"4 android:theme= "@ Style/unifiedemailtheme ">
Grep-nr "Unifiedemailtheme"; get the following main results
<style name= "Unifiedemailtheme" parent= "@android: Style/theme.holo.light.darkactionbar" >
<style name= "Unifiedemailtheme.appcompat" parent= "@style/theme.appcompat.light.darkactionbar" >
Log prompts us to use the Theme.appcompat
Change the Unifiedemailtheme to Unifiedemailtheme.appcompat
Git diff is as follows:
< Activity Android:name = "Com.android.mail.browse.EmlViewerActivity" android:label= "@string/app_name"- android:theme= "@style/ Unifiedemailtheme ">+ android:theme=" @style/unifiedemailtheme.appcompat ">
Modify and then compile the push into the machine and reboot. Verify after reboot to open MHT and HTML files normally
Android5.1-email app open MHT file Flash back