hi Sean, finally finally i have sorted out. but not 100% but by 99% i have achieved it.
give me your mail address so i'll mail you a sample code. this is my Activity A public class blur extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); startActivity(new Intent(blur.this, Transparent.class)); //onPause(); } @Override protected void onResume() { // TODO Auto-generated method stub if (Constants.isViewedMSG) { Log.d("RESUMEEEEEEE", "Resume activity"); finish(); } super.onResume(); } } this is my Activity B public class Transparent extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND); setContentView(R.layout.trans); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == KeyEvent.KEYCODE_BACK) { // setResult(RESULT_CANCELED); finish(); Constants.isViewedMSG = true; return true; } return false; } } this is my manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.randika.blur" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/ app_name" android:debuggable="true"> <activity android:name=".blur" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Transparent" android:theme="@style/ Theme.Blue"/> </application> <uses-sdk android:minSdkVersion="4" /> </manifest> this is my theam.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Blue" parent="android:style/Theme.Translucent"> <item name="android:windowNoTitle">true</item> <item name="android:colorForeground">#fff</item> </style> </resources> this is my Constant class public class Constants { public static boolean isViewedMSG = false; } if you went through the source code you'l see the i have override onResume method. there i'm checking the Boolean value and according to boolean i'm finishing the Activity A regards, MIke -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en