I am using the method HTML.fromHtml in android to show some about text in my app. Is it possible to add an image into my about text and if so how?
Here is my activity where the aboutText will be started
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate( savedInstanceState );
setContentView(R.layout.activity_information);
int versionNumber = 0;
String versionName = "";
try{
PackageInfo pInfo = getPackageManager().getPackageInfo( getPackageName(), 0 );
versionNumber = pInfo.versionCode;
versionName = pInfo.versionName;
} catch (NameNotFoundException e){
Log.e( TAG, "error while extracting version name and version number" + e.getMessage() );
}
TextView about = (TextView)findViewById( R.id.about_text_view );
Spanned aboutText = Html.fromHtml( "<h1> PDiX Attach, Version " + versionName + "</h1>"
+ getString( R.string.about_text ));
about.setText( aboutText );
}
And the resours R.id.about_text looks like this:
<b>Requirements:</b>
<br/>The application supports Android Devices with Version 2.2 or higher.
<br/>HERE I WANT TO ADD AN IMAGE<br/>
</body>
]]>
Thanks