Skip to main content

Posts

Showing posts from July, 2014

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