var picker,view,hv={}; //Called when application is started. function OnStart() { //Create a layout with objects vertically centered. var lay = app.CreateLayout( "linear", "Left" ); //Create a full screen scroller var scroll = app.CreateScroller( 1.0, 0.95 ); lay.AddChild( scroll ); //Create a layout inside scroller. var layScroll = app.CreateLayout( "Linear", "Left" ); scroll.AddChild( layScroll ); view=app.CreateWebView(1.5,0.95); layScroll.AddChild(view); //Add layout to app. app.AddLayout( lay ); var path="/sdcard/DroidScript/Hello World/Img/Hello World.png"; hexViewStart(path,view); } function hexViewStart(fullPath,webView) { hv={chunksize:1024,path:fullPath}; hv.webView=webView; hv.file = app.CreateFile( hv.path, "r" ); hv.len = hv.file.GetLength(); hv.html="
"+fullPath+"
"; var pos8=" | "+ ("00000000"+ pos.toString(16)).slice(-8).toUpperCase() + " | "; for(var i=0;i"+hex.toUpperCase()+" | "; abuff+=asc; } abuff+=""; row="