Monday, April 20, 2015

Handler in android

Handler:

A Handler allows you to send and process Message and run-able objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and run-able to that message queue and execute them as they come out of the message queue.

Thursday, April 16, 2015

Set more than one animation on a view programatically in android

For this you can use AnimatorSet class of android


This class plays a set of Animator objects in the specified order. Animations can be set up to play together, in sequence, or after a specified delay.

Tuesday, April 14, 2015

Open facebook with intent in android

Android: Open Facebook official app from your own app with different intents
Opening Facebook's official android app from your own app is really easy. You just need to create an intent with correct uri and start and activity with that intent. The app will open with the right page, group, picture, video or etc.

Monday, April 13, 2015

Drag a view with finger in android

Here is a example of  Dragging or moving a view in android,this example will also detect left or right movement of your view and you can perform any thing you want.... on drag left or right..

Create a class which implements OnDragListener

class MyDragListener implements OnDragListener {


Wednesday, April 8, 2015

Android Studio vs Eclipse Differences

Most of Google’s 2013 I/O event was about Android. One specific announcement managed to attract a lot of hype and that was no other than Google’s own Android IDE, Android Studio. It has been just over a year now since the first public release and Android Studio has come a long way, despite still being in beta. The IDE itself is based off the very popular IntelliJ IDEA from JetBrains and is being offered by Google for free.

Monday, April 6, 2015

Difference b/w interface and a class

The key technical differences between an abstract class and an interface are:

  • Abstract classes can have constants, members, method stubs and defined methods, whereas interfaces can only have consts and methods stubs.
  • Methods and members of an abstract class can be defined with any visibility, whereas all methods of an interface must be defined as public.

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