Blogs On Android

About Android

Android software development is the process by which new applications are created for devices running the Android operating system. Applications are usually developed in Java. Android is an open source and Linux-based operating system. Android was developed by the Open Handset Alliance, led by Google, and other companies. Android programming is based on java programming language so if you have basic understanding on Java programming then it will be a fun to learn Android application development..

Solution for Glide failed to load image in android pie 9.0

Image loading issues in glide android pieid Pie 9.0

Hello, I have seen that in the Android latest version 28.0 or I can say in Android Pie 9.0 when we are using Glide for image loading then nothing is loaded. Actually this thing accrued by Network secu...

How to find prefix and suffix of the word in javascript

Find start and end position of selected text

First of all, you have to know that how to get the currently selected text on the page by using the JavaScript. So, Javascript provided a method for retrieving the current selection of the page by usi...

Spinner with search option in android

How to create searchable spinner in android

Hello, Let's see the above example for your awesome dropdown list to search. Searchable Spinner is a dialog spinner with the search feature which allows to search the items loaded in th...

Set background image randomly from gallery in android

How do I set a picture as my background on my Android?

Hmm, I think you want to show the background image in your open activity view. But you want to show this one from your gallery and it should be selected randomly from your gallery....


How to open link externally from android webview

Android open url external browser and internal WebView

You can open link of the WebView externally from android webview without leaving the app. For this action you need to set a WebViewClient class in your WebView. No n...

Android difference between Two Dates

How do I calculate difference in days between two dates?

In the given example we will learn how to calculate difference between two dates in java in terms of Second/ Minutes / Hours / Days. public int getDateDiffFromNow(String date){ int days = 0; tr...

Getting the screen density programmatically in android

Getting the screen density programmatically in android?

You can get info on the display from the DisplayMetrics struct: DisplayMetrics metrics = getResources().getDisplayMetrics(); This will give you: 0.75 - ldpi 1.0 - mdpi 1.5 - hdpi 2.0 - xhdpi 3....

How To Call Native Java Methods From Webview Javascript

Call Java function from JavaScript over Android WebView

When any developer developing an Android app based on Webview, that time developer faces a number of problems. So, this post is based on one of that issue, which is - How to call native Java...


Top