blackberry show image with HTML in a field -
i have been trying display html content along image (using src attribute), have not been able show image.rest of html works.i wonder value should give in src.my image location : sdcard/somefolder/1.png .iam targetting os 5.0. please note have use image sdcard only
uri uri = uri.create("/sdcard/somefolder/1.png"); //replaced < $ , > & site dint let use :( string htmlcontent = "$!doctype html public \"-//w3c//dtd html 4.0 transitional//en\"&" + "$html&" + "$body &" + "$form&" + "$div &$/div&" + " $input type=\"text\" &" + "$img src=" + uri + " alt=\"some_text\"/& " + "$input type=\"submit\"&" + "$/form&" + "$b&use menu change search engine use.$/b&" + "$br&" + "$/body&" + "$/html&"; browserfield mybrowserfield = new browserfield(); mybrowserfield.displaycontent(htmlcontent, "http://localhost"); //add mybrowserfield screen;
have tried file:///sdcard/somefolder/1.png ?
Comments
Post a Comment