0
我一直在研究如何使用android webview上的文件輸入時,當我遇到這個帖子,但我有太多的錯誤嘗試使用它,請有人可以幫助我作爲新的android和不太確定是否在正確的地方使用代碼。Android Webview輸入文件選擇器代碼錯誤
這裏就是答案
https://stackoverflow.com/a/42385128
的錯誤,我得到的鏈接。
牧馬(不能解析符號)
網絡連接(不能解析符號)
MCM(不能解析符號)
FCR(不能解析符號)
getAbsolutePath()(無法解析方法d)
photoFile(FROMFILE(java.io.File中)在URI不能被應用到(網絡))
public class AppActivity extends AppCompatActivity {
private WebView appbrowser;
private static final String TAG = "AppActivity";
protected void onCreate(Bundle savedInstanceState) {
//webview code
}
@Override
public void onBackPressed() {
//other code
}
//I please the file chooser code after the two above codes
//Here in serted both codes
}