I am trying to run the app on my Android 10 device from the Android Studio and the following error is shown – I think I have to change the minSdk value, but in which file and how to do it? Answer The device you are using has lesser API than minimum required API set by you. So, either you
Tag: android-studio
how to stop the web view and display a reload message if the page does not load for 30 seconds?
I have a web view and i have this code (P.S i am a beginer in programming) I already have webview client and webchrome client, you can see and download my code files here (cloud.mail.ru/public/2hHz/25DMkxh3U) At the top you can see my code in Main activity. Answer You can check how to find if the webview loaded completely at this
use multiple location geofencing
I used this code (https://www.youtube.com/watch?v=nmAtMqljH9M&list=PLdHg5T0SNpN3GBUmpGqjiKGMcBaRT2A-m&index=9&ab_channel=yoursTRULY) (https://github.com/trulymittal/Geofencing) That code makes geofence by click and uses just one geofencing. But I wanna make geofence one more fixed markers when it start, and use one more geofencing. So I revised this code(MapsActivity.java) by As a result, when start the app, four markers and Circles(I added fout latLng) are added on the map! But
How to make a the dialog choose box like this custom dialog with cancel button on the top right corner like this one?
How to make a the dialog choose box like this custom dialog with cancel button on the top right corner and lines with different lengths and floating hint when there is chosen anything in android …
How can I change the previous web page to my own if it did not load in WEB VIEW?
P.S my English very bad and I have mistakes in text))) please sorry! The problem is that when a new page is loaded, WEBVIEW shows the previous one, and if it is not loaded at all or loaded with errors, then it shows the message The web page is not available, which I would not want to see at all,
How to disable Content Security Policy in Android WebView?
I’m trying to load TikTok website in WebView. But I can’t. In logcat I got this error: Seems Chromium blocking some javascript files that’s why I got white screen. How can I disable or any solutions for it? My Webview: Answer Fixed it. Thanks all.
Disable StartApp SDK auto show ads when activity is visibile
I was successfully able to add StartApp ads to my project, I only added 1 banner. My question is, why a full screen ad keeps showing when my activity is visibile? (e.g: I’m inside the app then I open YouTube without closing my app, when I get back to my app, a full screen ad pops up) Is there any
Toast Message is not created when message received at Java Websocket server in Android
I am trying to create basic WebSocket server with this library. I want to make a toast message when a message is received. In onMessage() function below I have implemented that. But no toast message is happening. But Received message is printed on console. Answer I think you have to switch to the UI thread to show the Toast. You
Android: How to cycle through different images with button click?
In my android program I am wanting to cycle through different images of traffic lights on the click of a button. Whenever the app loads it starts off with an image of a red light, and when I click it I want it to change the green light, and the another click to a yellow light. This is what I
Why does url with space gives me MalformedURLException? [closed]
I work with GoogleBook API, when i type one word on EditText, URL link works well for example: I type prince and the app doesn’t crash, but when i type the prince it crashes and give me …