Category Archives for "Android"

SlidingPaneLayout Example

In this tutorial, I will explain how to use SlidingPaneLayout. Its an interesting component which can be used whenever we want a multi-pane horizontal layout in our app. It is divided in two different parts: left side: The master pane which usually contains a list of values. right side: The detail pane which usaully contains […]

Continue reading

Customized Toast messages

Sometimes when you show toast messages in your code you might not want the default length SHORT or LONG to display the toast. Somtimes we need to customize the duration of toast as per our requirements. Today in this example I will show how to customize Toast to display it for longer duration, by using […]

Continue reading

ScreenCrack Application

Today in this tutorial we will make an small app to have some fun. Can you imagine how you will feel if your mobile screen cracks? OR How much fun it will be to see your friend’s face when his/her mobile screen cracks while running application you shared with them. Let us create an android […]

Continue reading

Recycler and CardView combined in Android L

RecyclerView and CardView are 2 very important and new features introduced in Android L version(An early version Android Lollipop). The RecyclerView is a more advanced and more flexible version of the ListView. On the other hand CardView is a new component which is not an “upgrade” to any existing component. Today in this tutorial,we gonna […]

Continue reading

Google cast sender app in android

You must have heard about the chromecast, a product launched by Google to share your small phone or tablet or laptop screen with TV. Google has sold millions of Chromecasts and Android TV until now. Knowing how to build an app that supports casting should be the dream/aim of every Android developer. Today in this […]

Continue reading

Updating your progressbar with a count down timer

A Progress bar in android represents the progress of any task user has assigned in graphical view. In short it shows a bar which represents the completion of a task. It is very common component in any user interface. Check my blog on progress bar I have posted long ago Here. Today I will show […]

Continue reading

Scroll to a selected position in listview

Today I will explain different methods of scrolling. We will learn how to scroll top, bottom and any specific position in a listview in android. Sometimes in programming we need our listview to scroll to any specific position. Lets now try this with a code example. Follow the steps below: Step1: Create a new android […]

Continue reading

Lock screen notifications in Android 5.0

Android Lollipop is running with new features, and one of those is lock screen notifications. Up until this point, lock screen media controls must be defined with the use of a RemoteView, and media control notifications must be built using custom views. Today in this excercise we will see how to use the new MediaStyle […]

Continue reading

Implementing “Rate this App” feature

If you have already published your app into android market you might want to get a feedback from your users. This can be done in Google Play where users can rate an app and leave a comment. It will help you as a developer to improve your app and allows other users to see if […]

Continue reading

Overlay on Camera Preview

In this example we will add an overlay on the Camera Preview SurfaceView. Also we will add some control such as “Take Picture” button on the overlay. Just to summarize this example not only shows how you can have a custom UI for your camera but it also explains how you can overlay images on […]

Continue reading
1 2 3 32