android - Open app menu item from webview -


I am trying to start an intention to open a zxing barcode scanner with a link in a webview.

I have created a menu item which launches the Xxing scanner from the menu, when a person hits the menu button on their phone but some tablets do not have a menu button, so I have access to the webwaves Is required.

I have no clue where to begin I thought that there would be a way to add a JavaScript code to the webview, when someone clicks on a link, then that Android: id = "@ + id / scanNow "Or equivalent says something.

Or there is a way to launch for me:

  case R.id.scanNow: intent = new intent ("com.google.zxing.client.android .SCAN "); Intent.putExtra ("com.google.zxing.client.android.SCAN.SCAN_MODE", "QR_CODE_MODE"); StartActivityForResult (intent, 0); Back true; From  HTML   

What you probably want There is some JavaScript in WebWebView and can link it to your Android application. For this, you will need to use.

Check for more clarification.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -