Jump to content

Android Studio: Upload via WebVIew

JakePC

Hi,

 

I am trying to upload a file through WebView on Android Studio. However, the Upload button will not work. I have tried looking at a number of tutorials but they seem very outdated.

 

Thanks,

Jake

Link to comment
Share on other sites

Link to post
Share on other sites

Hey Jake,

 

I've come across this before, unfortunately, trying to get this to work was painful.

 

I've ended up giving up on the WebView and just having a static layout with dynamic content.

A user can then click a button to upload an image.

it uploads the image using a background post request. (returns JSON data when complete and the image changes on the user side)

 

Although it's possible, it's easier to just make most pages using JAVA and dynamic layouts instead of loading HTML content. :/

 

I'll give some examples of what I have in place on some of my apps if you'd like?

 

Cheers,

Leon.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×