prompt for antigravity

 Create a professional Android Studio Kotlin template project with only three main files -MainActivity.kt', 'Admob.kt", and "Config.kt + Permissions (Internet) -that converts either a website URL or a local HTML/CSS/JS project into a fully functional APK. The template must support two modes: in Mode 1, the user simply replaces a single URL constant in 'Config.kt to load any live website inside a WebView; in Mode 2, the user places all their HTML, CSS, and JavaScript files inside a dedicated 'assets/" folder (which must be pre-created with a clear folder structure), and the app automatically loads from that local path-both modes must be switchable by changing a single clearly documented constant in 'Config.kt. Every configurable line in the code must have a professional inline comment explaining exactly what to replace and how. The app must include a permanent AdMob banner ad fixed at the bottom of the screen and optional interstitial ads- if the user leaves the AdMob ID fields in Config.kt blank or empty, ads must be completely disabled with no crashes, but if valid Ad Unit IDs are provided, both banner and interstitial must activate automatically; the interstitial display interval must be configurable in Config.kt as a value in seconds. Additionally, the app must feature a Chrome-style pull-to-refresh gesture using SwipeRefreshLayout and a Chrome-style thin horizontal progress bar at the top of the screen that animates during page loading, both implemented natively in Kotlin with no unnecessary third-party libraries.j

Post a Comment

0 Comments