php - webview (assets) doesn't respect the device width -


a month ago did simple webview called web page (php) in there this:

  <meta name="handheldfriendly" content="true">   <meta name="mobileoptimized" content="320">   <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> 

but i've done same thing offline, viz same files in assets folder , called them (index.php includes header.php , footer.php) in local), css file , js files using webview function loadurl > "file:///android_asset/index.php". i've tried on device (samsung galaxy s2) , ok, run, doesn't load css or header.php. me? thanks.

an android device not have php intepreter / apacheserver inside execute php code , output generated html. (so include commands wont work) have include plain html page in assets folder or load php page server... (not local)

to try locally can save html page generated server online version browser , put page in assets folder. useless when page dynamic.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -