Skip to main content

Posts

Right to Left or Left to Right Animation Android

Create an "anim" folder inside res folder in your application. Create animation resources into anim folder 1. in_from_left.xml <set xmlns:android="http://schemas.android.com/apk/res/android"  android:shareInterpolator="false">  <translate         android:fromXDelta="-100%" android:toXDelta="0%"         android:fromYDelta="0%" android:toYDelta="0%"         android:duration="1400" /> </set> 2. in_from_right.xml <set xmlns:android="http://schemas.android.com/apk/res/android"  android:shareInterpolator="false">  <translate         android:fromXDelta="100%" android:toXDelta="0%"         android:fromYDelta="0%" android:toYDelta="0%"         android:duration="1400" /> </set> 3. out_to_left.xml <set xmlns:android="http://schemas.android.com/apk/res/android"  android:s...

How to finish all activities in your Android application through simple call

Hi, Maybe you had some problem which I can describe and show the way to fix it. Actually, problem is a closing all your Android application’s Activities through simple call. There are many ways to fix this. I want to show you one of them. Before starting I want to ask you something. Please email me or post a comment for this post if you find better and more flexible way to close all Android application's activities. I will be appreciative you! Below you can download the sample project. This project contains 3 (three) activities and ONE abstract Activity. All Activities in this sample project extended this abstract Activity class. This Activity extended Activity class from Android API. The most interesting contains in this abstract Activity. Here the source: package com.ravi; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; public class AppBas...

Eclipse Android Shortcut Keys

NAVIGATION SHORTCUTS   Shortcut Description Control + Shift+ R Open / Search for resources, e.g. files Control + Shift + T Open / Search for Types Control + F8 Shortcut for switching perspectives Control + E Allows to select an editor from the currently open editors Alt + ← or Alt + → Go to previous/ next editor position in history F3 Go to the declaration of this variable Ctrl-PageUp/PageDown Switch to previous/next editor Control + Shift + P Go to the matching bracket SEARCH SHORTCUTS Shortcut Description Control + . Open / Search for resources, e.g. files Control+ , Open / Search for Types Control+ J , Control + K Shortcut for switching perspectives Control + Shift+ G Allows to select an ed...