我正在尝试根据本文中的技术做一个非常基本的 Web 容器应用程序:https ://medium.freecodecamp.org/how-to-turn-your-website-into-a-mobile-app-with-7 -lines-of-json-631c9c9895f5
问题是,在 android 上,当按下多部分选择按钮时,它会被忽略。即使使用这种基本形式:
<form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
我的外部 Json 是:
{
"$jason": {
"head": {
"title": "web",
"actions": {
"$foreground": {
"type": "$reload"
}
}
},
"body": {
"background": {
"type": "html",
"url": "https://website.com/",
"action": {
"type": "$default"
}
}
}
}
}
我的字符串 xml 是:
<resources>
<string name="app_name">web</string>
<string name="url">https://website.com/json/live_a_app.json</string>
<string name="launch">file://preload.json</string>
</resources>
我已将此添加到清单中:
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
任何帮助将不胜感激,谢谢!