How to change the default transition between activities?
In android the default transition between activities is to slide from left to right. But with custom animations we can change that. First create a folder inside the res/drawable folder called “anim”....
View ArticleCustom Alert in android.
We can create any type of alert in android. Today I will show a simple example showing how to create a custom alert in android. i.e you can provide any layout to your alert dialog. Now we will start....
View ArticleHow to use global variables in android? -Part 2
Hello all…. In a previous post I showed a method to share global variables across your android application. Those were done using a static class. Now today I will show you another way of sharing global...
View ArticleSend Data when Clicking on a Notification in Android?
Hello everyone… I have shown in my previous tutorials on how to create notification in android and cancel it. This is the post showing this . Now today I am going to show how to send data when you...
View ArticlePassing data between Intents or classes in ANDROID?
Many of our application reqiures sending data from one intent to another. This is done by putting data into one intent using putExtras() and getting it in the other intent using the getExtras() which...
View ArticleHow to copy a file to another saved in SDCARD in Android?
Hello all… This tutorial explains how to copy a file contents to another in Android. The file to copy is saved in SDCARD, however you can change the path to save it in your application sandbox. if you...
View ArticleHow to draw Arcs in Android using canvas?
This is a simple example showing how to draw Arcs in android, You can use this to create piecharts or someother similar thing you want. Here we have 3 classes. 1. GraphicsActivity.java 2....
View ArticleHow to create animation by default in a GridLayout in Android?
This example shows you how to create animation using the default XML tag in a gridview. This application demonstrates how to use the animateLayoutChanges tag in XML to automate transition animations as...
View ArticleSnackBar and Floating Button Demo in Android
Snackbar is a UI element used for user feedback, just like a Toast except they provide action to interact with. Snackbar will be displayed at the bottom of the screen and can be swiped off in order to...
View ArticleDataBinding in Android using Observable Collections
As I shown in the previous post where we used BaseObservable and ObservableField to update UI when binding object is changed, this post will show you another simple way to achieve this. Do Check my...
View Article