Sometimes, we might need extract domain name such as www.google.com from the www.google.com/search=searchQuery. In android java, the code below can do it. It will output only the domain name after stripping other characters Java Code for getting host domain name…
Android Tutorials
Android SoftKeyBoard Enter Key Handling
How to Handle Android Keyboard’s Enter Key to Support your Own Function By default, android soft keyboard’s enter key doesn’t support your own function even if you have set “imeOptions” in the xml of the layout. It is a useful…
Test Intent and URL Schemes of Android Webview
URL Schemes Tester This page contains different URL Schemes that can be used to test various URL Schemes, it was created to test android webview, but other apps may also work. URL Schemes By clicking any of the item below,…
Realme XT Specifications, Launch Date, Price and Details
Realme xt details, launch date and reviews The Realme XT is an android smartphone with a massive 64 Mega pixels camera and qualcomm snapdragon 712 processor. Brand and Name Realme XT Release Date 13th September 2019 Processor and Storage 64GB…
How to Copy a Webview Link in Android Java
Here is how to Copy current web address url in Android Java With the simple java code below, you can copy a link of current loaded website address in a webview. The url will be saved to your Android clipboard,…
How to get Android App Version Programmatically in Java Android Studio
Here is how to get android app current version code programmatically in java android Sometimes, you will need get the current version number of your android app programmatically, this can be useful to display the current version of your app…
Fix Namespace ‘ads’ not bound in Android Studio Xml Java
Here is how to Fix Namespace ‘ads’ not bound in Android Studio This error is commonly appeared in the xml of your activity while you trying to add google ads or admob into your android app to earn a revenue…
How to load an Image in Glide Android Java
Here is how to load an image or photo into an imageview easily using glide This is one of my apps using glide to load images online Glide is an image loading library for Android. Using glide, you can easily…
How to Set Padding Space in EditText field on Android Xml Java
Here is how to set padding in EditText field in Android studio xml Java Sometimes, you may need set some padding in the EditText field, it is actuality a good thing for your app to look more professional. You can…
Fix Android Webview is Vulnerable to Cross app Scripting GooglePlay Warning
How to Fix Webview is vulnerable to cross app scripting Error Google Play Warning in Android Studio Have you faced this warning in your google play development console? That’s because your app has a Webview that is not safe for…