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..

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...

Tips for regular uses during Android development

How to become a better Android developer

Tips for regular uses during Android development, these tricks and tips are mostly used by developers. Table of Contents How to get Device Name? How to get the current Version Code? How t...

Disable screen capture in android

Disabling screenshot capture in Android application

Disable screen capture in android Generally, when you take a screenshot, you will see a Screen Capture notification in the notification bar and you can see that screenshot in the Gallery app if you c...

AsyncTask in Android

Asynchronous background task in android

Android AsyncTask (Asynchronous Task) is an abstract class provided by Android which gives us the liberty to perform heavy tasks in the background and keep the UI thread light thus making the app...


Top