Thursday, June 2, 2016

chat head like facebook programatically in android

You can simply use a service class to show a chat head like button on Screen.

Global access to a service can be enforced when it is declared in its manifest's <service> tag. By doing so, other applications will need to declare a corresponding <uses-permission> element in their own manifest to be able to start, stop, or bind to the service.

Thursday, April 7, 2016

Expand collapse a layout height with animation

Sometimes according to requirement you need that the view will animate when you change its height or width.
There are multiple ways to set width and height with animation.I have  mention one of them,which is small and easy enough to understand.

Friday, March 4, 2016

Get current location in an activity in android.

We will use  GoogleApiClient to current location ,you can read about GoogleApiClient from here.
You will get complete code here.. (for Activity)

Check the below example for a Fragment. Extend your Fragment with this class(below) and its done..!

Wednesday, February 24, 2016

RecyclerView vs. ListView

With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. I will try to give you a detailed insight into it.

1) ViewHolder Pattern
In a ListView, it was recommended to use the ViewHolder pattern but it was never a compulsion. In case of RecyclerView,

Monday, February 15, 2016

How to get string adress from latitude and longitude in android (Reverse geocoding)


Fetch address data using  GEOCODER(Reverse geocoding) and if it fails ,we can also use GOOGLE API to get address from lat lng.

What is Geocoding?

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map.

Friday, January 29, 2016

Who is Programmer

- A machine that turn coffee into code.
- A person who fixed problem that you didn't know you have, in a way you don't understand. 

Wednesday, January 27, 2016

How to get recent contacts or all contacts in android

Raw Contact 

A raw contact represents a person's data coming from a single account type and account name. Because the Contacts Provider allows more than one online service as the source of data for a person, the Contacts Provider allows multiple raw contacts for the same person. Multiple raw contacts also allow a user to combine a person's data from more than one account from the same account type.
Most of the data for a raw contact isn't stored in the ContactsContract.RawContacts table. Instead, it's stored in one or more rows in the ContactsContract.Data table. Each data row has a column Data.RAW_CONTACT_ID that contains the RawContacts._ID value of its parent ContactsContract.RawContacts row.
 

Thursday, January 14, 2016

Auto Complete TextView (with history as suggestion) in android

Auto Complete TextViews


An editable text view that shows completion suggestions automatically while the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.
The drop down can be dismissed at any time by pressing the back key or, if no item is selected in the drop down, by pressing the enter/dpad center key.

Monday, December 21, 2015

Setting multiple alarms in android (Alarm Manager)

  
AlarmManager-

This class provides access to the system alarm services. These allow you to schedule your application to be run at some point in the future. When an alarm goes off, the Intent that had been registered for it is broadcast by the system, automatically starting the target application if it is not already running. Registered alarms are retained while the device is asleep (and can optionally wake the device up if they go off during that time), but will be cleared if it is turned off and rebooted.

Friday, December 18, 2015

Don't Marry a Software Engineer

Don't Marry a Software Engineer
donot-marry-a-software-engineer
> > HUSBAND - HI DEAR,I AM LOGGED IN.
> > WIFE - HAVE YOU BROUGHT THE SAREE.
> > HUSBAND - BAD COMMAND OR FILE NAME.
> > WIFE - BUT I TOLD YOU ABOUT IT IN MORNING
> > HUSBAND - ERRONEOUS SYNTAX, ABORT,RETRY,CANCEL.

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies . Six months later the ...

 

G-Expo Template by Ipietoon Cute Blog Design