How to hide and show android status bar programmatically To hide the status bar, go to the activity’s java file and enter the following code in the Oncreate method Java Android code to hide status bar To hide the…
Android Tutorials
Make Android WebView Support File Upload
How to make android webview support image or files upload The WebView of android can be configured to support file upload, the code below can make the webview support file upload. The code is a bit long, so you need…
How to Inject CSS to WebView Android Java
Insert or inject stylesheet css to Android webview java You can stylize or modify webpages with your own custom CSS style sheet in Android webview. To do that, we need a stylesheet.css and a few lines of code. In the…
How to Show Animation When Opening an Activity Android Java
How to implement an animation when starting activity in android java You can show a custom animation when opening an activity in android with a simple and few lines of code, to make it work, you need put your animation…
How to Fix Unknown URL Scheme in Android WebView
The unknown url error screen Fix err_unknown_url_scheme intent://,whatsapp:// etc in Android WebView Updated on 12 – October,2020. This error is appeared in your android webview appĀ because the WebView can’t recognize the special URL Schemes For example, the WebView will usually…
How to Check if a String Contains a Value in Android Java
How to Test if a String Contains one or More Values in Android Java Sometimes you will need to check a string for a specific value in android java for your android app. for example, you have a website URL…
Set Internet Permission in Manifest in Android Studio
How to Give Internet Permission in Manifest in Android Studio We will look how to add internet permission in android manifest in android studio here. Internet permission is necessary if your android app connects to internet. Without internet permission, your…
How to Set Custom User Agent in Android WebView
Set Custom User Agent Android WebView In webview of Android, if you want to set custom user agent,this tutorial is for you. Custom user agent can be helpful if some options of a website is only available in the desktop…
Show a Toast in Android Java
This will show a Toast message Toast.makeText(getApplicationContext(), “This is my Toast message!”, Toast.LENGTH_LONG).show(); You can try LENGTH_SHORT< for short duration of the toast
How to use tools overrideLibrary with multiple libraries in Android Manifest
Sometimes, you might need to override libraries in android manifest to keep the functions of your app stable, but when you have more than one library to override, you will need to override multiple libraries with a single line of…