Possible Duplicate:
File Upload in WebView
I hope there is an easy answer for this question. I have this Android code running in my app:
package com.example.myfirstapp;
import android.webkit.WebViewClient;
import android.webkit.WebView;
import android.util.Log;
public class MyWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
Log.d ("myfirstapp_tag", "shouldOver... loaded Url " + url );
return true;
}
}
... but when this HTML is loaded ...
<tr><td>
<form method="post" action="/myphp.php" enctype="multipart/form-data">
<label for="upload">Add Pic:</label><input type="file" name="file" id="file" />
<input type="hidden" name="action" value="upload" />
<input type="submit" name="submit" value="Upload" />
</form>
</td></tr>
... the form gets displayed with a "Choose file" button, but when I click on it nothing happens. What am I doing wrong here?
Thanks