Monday, April 20, 2015
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.
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..
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.
Tuesday, March 31, 2015
Get current latitude and longitude in android
By using this class you can get current latitude and longitude and it can open location settings if required. Its a easy way to get your current location.
Usage:
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.
Subscribe to:
Posts (Atom)
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 ...