A simple implementation for the SuitePad task
The Three apps are implemeneted as following:
App:represents the Presentation component as described in the task
DataSourceApp:represents the the Data source Component.(implemented as ContentProvider + Sync Service)
HttpServerApp:represents the the HTTP Proxy Server Component.(Implemented as a long Running service and server running on port 8765)
ThirdPartyLibs:
- NanoHttpD: is used to create a small local server on the device
Running the app
You should run/install the HttpServerApp and DataSourceApp before running the main app
SSL Support:
Firing Secure Https requests to the sever can be supported easily thanks to "NanoHttpd" built-in support for https but that requires a verified/signed certficate to be installed on the device and used by the server to secure the connections