ENABLE and DISABLE the Datawedge through a Javascript Android bridge

Hi,

one of my Customer has the below Question.....

There seems to be a way through a javascript-android-bridge to lock and unlock the datawedge. This is at http://techdocs.zebra.com/datawedge/7-1/guide/api/enabledatawedge/ and http://programmerguru.com/android-tutorial/binding-javascript-and-android-code-example/ described.

There seems to be also a way to use javascript-android-bridge to lock and unlock the DataWedge directly through JavaScript and Intents. Prerequisite is that a corresponding URL scheme is available.

To get ahead in this point, an example implementation is urgently needed.

Can someone help with that request ?

regards

Juan

Anonymous (not verified)
Hi Juan,For an example of

Hi Juan,

For an example of calling ENABLE_DATAWEDGE please refer to this app and line of source code: samples-datawedge/MainActivity.java at master · Zebra/samples-datawedge · GitHub You will need to do a similar thing on the native Android side of your JavaScript bridge.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Juan Garcia
Hi Darryn,thanks for your

Hi Darryn,

thanks for your answer.

I have forward this to my customer and got this feedback

unfortunately, the example provided by you does not help us any further. It is a sample code implemented in Java. But we are talking about a web application that is also implemented in Java, but only on the server. The functionality is needed on the mobile computer. There are only HTML and JavaScript available.

Any idea ?

regards

Juan

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
The link at http:/

The link at http://programmerguru.com/android-tutorial/binding-javascript-and-android-code-example/  is talking about Java being executed on the device and accessed from a WebView embedded within the application.

If your on-device solution is fully HTML / JavaScript then I strongly recommend Zebra's Enterprise Browser to render your application About Enterprise Browser - Zebra Technologies TechDocs .  This also gives you access to a JavaScript API: Enterprise Browser - Supported APIs - Zebra Technologies TechDocs

Thanks

Darryn.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments