This is a standalone Web Broker app ported to Android. It has a TDataModule instead of a form, so there is no GUI. It is tested to work under Android Things and Emteria.OS on Raspberry Pi 3.
There is also a Delphi version
I created a slide deck that walks through this in more detail. You can find the latest version on Google Slides, or it is in this repository as a PDF too. I have a blog post with more information as well.
You will need to copy the following files (and possible more) from your RTL folder into the RTL subfolder to compile for Android since they are not included in the Android package:
- Web.WebReq.pas
- Web.WebBroker.pas
- Web.WebConst.pas
- IdHTTPWebBrokerBridge.pas
- IdCompilerDefines.inc
- Web.WebReq.hpp
- Web.WebBroker.hpp
- Web.WebConst.hpp
- IdHTTPWebBrokerBridge.hpp
This isn't officially supported, and only has limited testing. Your mileage may vary.
This was developed and tested in C++Builder 10.3.1 Rio.