Search code examples
androidapp-inventormobile-development

How do I use Web Component of MIT App Inventor in Android Studio?


  • I have made an Application in MIT App Inventor for sending GET request for connecting to WiFi Module [ ESP8266 ].
  • There is a button which when clicked sets the Web URL to ESP8266's IP address, for example http://192.168.4.1/?pin=13
  • Then a function call on Web is used and a GET request is send.

  • I wanted to ask how to implement the same functionality using Android Studio. Maybe a name of component or function in Java Code.

  • I am attaching the block design for reference. enter image description here


Solution

  • Take a look at this site: http://www.appinventor.org/jBridgeIntro

    The library file (http://www.appinventor.org/javaBridge/downloads/AppInventor-JavaLibrary.jar) can be added as a library file for your project.

    You then get all the 'blocks' as in AppInventor, but they're pre-prepared Java classess etc.