[Android App] how to call an Item from webview in OH 2.1?

Hi folks,

am I blind or aren’t there any explanations on how to call an item out of webviews?
I’m trying to develop a KODI Control webview, so that i can confortably control my KODI.

like:

    UP

LEFT OK RIGHT

BACK DOWN

and so on… with pretty images… but can’t find any informations to call my kodi items

I got stuck here, please point me to the right information on how to do that…

cheers

DAN

Webviews are just a way to display a web page or part of a webpage that is not part of OH. There is nothing provided with a Webview that integrates with OH. Unless you code into your web page with the ability to make the calls to Item yourself there is nothing that can be done. But you have to do this yourself.

Look at the REST API Documentation (you can install it from the Misc tab in PaperUI) and see if you can figure out how to write the JavaScript to make the calls from your Webview.

Ouhh thought this would work easily… OK thanks a lot :wink: I’ll have a look at REST API commands to do so
If I find a solution I’ll post it here!