Android take screenshot programmatically

Generally we are taking screenshots in android devices by pressing power + volume down button. Now arises a question that is it possible to take screenshot programmatically from android app? Yes, it is possible to capture screenshot within our android app programmatically. In this tutorial, you will learn how to take screenshot programmatically of an 

Continue Reading…

Android Expandable List View Tutorial

Expandable List View is a view that shows items in a vertically scrolling two-level list. It is different to list view as it allows two levels: groups that can individually be expanded to show its children. Each group can be expanded or collapsed individually to show or hide its children items. Basic usage of expandable list 

Continue Reading…

Android Shared Preferences Tutorial

Sometimes you need some data to be available throughout our application so that you can read that data and use it in different scenarios like user sessions, app settings, etc. There are several ways to do that, one of the common way is to store data is global variables but problem is that data get 

Continue Reading…

How to Get Hardware and Software Information in Android

We have seen many apps on play store which provides the hardware and software information. In Android one can easily fetch the information programmatically using Build class. Build class in android provides the basic information like serial number, android SDK, brand, model no, manufacture, version code and etc. There are many other information you can 

Continue Reading…

How to disable back button in android

When user presses back button to Disable Back Button in android and you want to perform any of the action instead of exit from the app. Like you have seen in many app when user presses back button to exit an app a toast message is displayed with message “press again to exit” or a 

Continue Reading…

Animated Gradient Background in Android

Adding Animated Gradient Background in your app is really easy by using xml and java code. Animated moving gradients background between gradients as animation makes your android app really awesome. You might have seen this type of background color animation in Instagram app’s Login Screen. Instagram app keeps on transforming background from one gradient to 

Continue Reading…

Android How to convert Dp to Px and Px to Dp

If you are developing an android application that is based on inflating views at runtime and are dependent on height and width of the screen. You often need to Convert Dp to Px android and convert between real pixel (px) and device independent pixel (dp, dip). Most of the use case of converting dp to 

Continue Reading…

How To Reduce Android APK Size

Android Application Size really matters when going live to the play store. Users often avoid downloading apps that seem too large, particularly in emerging markets where devices connect to often-spotty 2G and 3G networks or work on pay-by-the-byte plans. I would like to share the few approaches which you can use to reduce apk size 

Continue Reading…

Show Buttons
Hide Buttons