S
S
Sasha D2016-06-27 13:59:27
Android
Sasha D, 2016-06-27 13:59:27

There is also an android WebView; Why is the file selection not opening?

there is one application that is extremely simple and primitive, it displays a certain site and, in fact, is its client. the site has a personal account and a form for sending a file in it, but in the application, by clicking on the "upload avatar" button, nothing happens, although at the same time everything works in the browser
TOTAL IS GIVEN: WebView
APP website
on WordPress
Personal account using WP-Recall sending files I must say right away that I tried 85% of the ways, the only thing I didn’t try was CORDOVA because I don’t know how to implement it stupidly. All intelligible advice is welcome, Personalities who stupidly neigh over stupid me too WELCOME! some of my application code

public class MainActivity extends AppCompatActivity {

    private WebView webView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        webView = (WebView) findViewById(R.id.webView);
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        SimpleWebViewClientImpl webViewClient = new SimpleWebViewClientImpl(this);
        webView.setWebViewClient(webViewClient);
        webView.loadUrl("http://XXXXXXXXX.XXX");
        
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if ((keyCode == KeyEvent.KEYCODE_BACK) && this.webView.canGoBack()) {
            this.webView.goBack();
            return true;
        }

        return super.onKeyDown(keyCode, event);
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sasha D, 2016-06-30
@cat_9h0st

The task was solved by integrating the CrossWalk framework into the project!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question