Tuesday, March 31, 2015

Thursday, March 26, 2015

Read or Write a serializable ArrayList into a text file in android

You can save your ArrayList in a File and can fetch when needed and its a good practice to not using sharedprefrence for large files,You can use Sqllite database or you can save them in a file for better performance.

Use this method to write a serializable Arraylist in a file 


Friday, March 20, 2015

Get incoming message text in android

Lots of applications required a text message verification with a code in order to work. If you are also looking to implement such functionality and want to receive an incoming text message in Android using code than use the below:

Tuesday, March 17, 2015

Send application invites to facebook friends in android

Facebook is used by every individual in their normal life, so increasing the visibility of an android application or game is easily achieved if we send application invite to our facebook friends. If you are also looking for a code that send invites of the application to facebook friends than use the below. 

Saturday, March 14, 2015

Set transparency level for a view in android

You can set alpha value(transparency level) by using setAlpha in xml or in java one more way to set alpha value is ..by defining transparency level in color code which you set on your view background.

Just add any one of these code before your color code

Thursday, March 12, 2015

Sorting a ArrayList in android

If you are having a string arraylist which contains names of people and you want to sort the arraylist in alphabetical order than use the below code. 

Sorting a ArrayList 

Most easy method to do so is..using Collections .You can use Collections to perform sorting or any other function on ArrayList.

Tuesday, March 10, 2015

Making ListView Scrolling Smooth

Many a time we face a problem where due to large number of images the listview is not srolling smoothly. If you are also facing the same problem than, Instead of using ImageView Use this class as your Imageview in your ListView adapter.


Monday, March 9, 2015

Animation in android using xml

Animation in Android takes few parameters, for example begin value, end value, size , time span , pivot point e.t.c and perform the obliged activity on that the selected object. Below are examples of few animations performed in Android like bounce, rotate, zoom, fadeout, blink.

First create an an im folder in res,then create an xml with name.xml :

Thursday, March 5, 2015

Convert date in hours ago or days ago in android

When you see a post it always shows time posted in hours ago or days ago. If you are also kooing to implement the same functionality using Android than use the below method that convert date or time in " hours or days".

//firstly find out difference between current time and other time
 long diff = currentdate.getTime() - temp_date.getTime();


Wednesday, March 4, 2015

Get all phone contacts in android

If you are looking to fetch all the phone contacts in android application or want to fecth google contact in android application similar to "whatsapp: than here is the method which will return all device contacts.

private void gettingPhoneContacts() {

Monday, March 2, 2015

Watch Youtube video using intent in android

We can see parcel of android applications playing videos inside the application. Putting videos inside the application will increase the application size and make it heavy. So considering all these things in our mind, we can transfer the video to Youtube and stream it in the application to reduction the application size.

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

 

G-Expo Template by Ipietoon Cute Blog Design