You can't execute JavaScript or handle AJAX fully with Jsoup alone. Instead, use a headless browser like Selenium (via a remote server) or offload the task to a Node.js backend with Puppeteer/Playwright. For authentication and cookie handling, use OkHttp in combination with a web scraping service. To run it in the background, use WorkManager or a Foreground Service in Android. Running a headless browser directly on Android is impractical, so a backend approach is often the best solution.