Follow this guide to fetch Plant a Tree | Crowd Fund Platform Solution for Android By OMG Lancer / Sheharyar Solutions data from your Java on Android app. The HttpURLConnection library will be used to fetch the database data through its REST API.
First you need to connect your app to the Plant a Tree | Crowd Fund Platform Solution for Android By OMG Lancer / Sheharyar Solutions database. It will authorize you to access this database API using your app keys. If your app doesn't have keys at Back4App yet, they will be generated during this process.
Now let's customize your query to fetch the data that you need!
Make sure that your Java on Android app has internet access permission. Your app's AndroidManifest.xml file should have the following line right after the application section:
Add the following code to your Java on Android app:
After running your app, you should see the following output in your Android Studio Logcat: