# API Connection to your app

After installation, you can connect your admin panel to your Android app using the API. The API base URL will be: <https://yourdomain.com/fly_tv_pro/api/>

Sometimes it may be in your public folder. [https://yourdomain.com/fly\_tv\_pro/public/api/](https://yourdomain.com/fly_tv_pro/api/)

## Change the #BASE\_URL in your android app

<figure><img src="https://2379170258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmfhqQhACo8QTICa6W0L%2Fuploads%2FFZihMuwoNCf5u1Ntlptz%2FScreenshot%202024-09-29%20at%2011.11.34%E2%80%AFPM.png?alt=media&#x26;token=fd559e56-e55b-4065-8d2a-280a93d9c8df" alt=""><figcaption></figcaption></figure>

* Open the network module
* Open Findthe build.gradle.kts file
* Find the BASE\_URL in buildconfigField.
* Replace the base URL with your new base\_url  it may be:  <https://yourdomain.com/fly_tv_pro/api/>

Now everything is done. clean and rebuild the project to get the change. if it does not work. You can invalid cache of Android Studio and restart. uninstall the previous application and run on your real device or emulator.

<mark style="color:orange;">N:B: if your admin panel in your local host . it may not work . Please upload it to your real VPS server.</mark>&#x20;
