Learn how you can retrieve external data in your Java Mobile application by configuring Remote Functions in Gluon CloudLink. The Java Mobile code calls a function with parameters, and this function makes a request to Gluon CloudLink. The Function Mapper in Gluon CloudLink will then call the corresponding external endpoint, providing the required parameters.
You need a valid subscription to Gluon CloudLink. You can get it here, and there is a 30-day free trial. Sign up and get a valid account on Gluon CloudLink and a link to download the Gluon CloudLink Dashboard.
Install and open the Dashboard, and sign in using the Gluon account credentials provided above. You will need to create the remote functions used by this sample in the Dashboard's API Management view, as explained in the documentation linked below.
To execute the sample, do as follows:
- Desktop
Just run it from your IDE or from command line:
./gradlew run
- Android
Connect your Android device and run
./gradlew androidInstall
- iOS
Connect your iOS device and run
./gradlew launchIOSDevice
Read how to create this sample step by step here
See a detailed screencast here