Why does my CSS and PHP include not load in my WebView

后端 未结 1 1039
迷失自我
迷失自我 2021-01-22 00:42

I use a WebView in my app. When the app is not connected to the internet I want to serve the site locally. I was able to build the APK and install the

相关标签:
1条回答
  • 2021-01-22 00:48

    Android does not ship with a PHP server. Therefore for all common intents and purposes, it is not possible to serve a .php file locally.

    You would need to rewrite your offline page to function without any PHP code.

    I assume the CSS you refer to is also part of the PHP include and therefore is not loading for the same reason.

    0 讨论(0)
提交回复
热议问题