0

since several days, I try to find the reason, why my App cannot open camera roll on android.

I have written down an App, which shows via StageWebView PHP generated remote sites. Everything is cool so far. But if I try to upload a file via form, the camera roll doesnt open at Android. On iOS it works perfectly!

The form in my php looks like this:

<form action="" method="post" enctype="multipart/form-data">
<input name="file" type="file" />
<input name="submit" type="submit" value="submit />
</form>

On iOS: The touch at "Select file" opens camera roll to select an image.

On Android: Nothing happens...

BTW: I tested the WebView component @ Android SDK, the same issue. Anyone any idea?

PS: I found the solution for Android SDK at Android WebView File Upload

But still missing the solution for Adobe Air StageWebView....

4

1 回答 1

0

实际上,问题在于文件上传组件在 Android webviews 中不再工作了!无论您使用 Adob​​e Air 还是本机应用程序,单击它时它都不会执行任何操作。谷歌在 Android 4.2 中故意阻止了它。

我最近花了很多时间来解决这个问题。我的解决方案是使用上周发布的这个 ANE,它取代了 StageWebView 并支持输入类型文件很好(在 android 和 IOS 上测试):https ://github.com/myflashlab/webView-ANE

希望这可以帮助!

于 2015-08-29T12:45:35.723 回答