Friday, August 26, 2011

[android-developers] Detection where the application is launched from History

Hello,everyone.

I would like to know how to detect where the application is launched
from
History when that application is started to launch.

currently, I try to use Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY to
be able to do that.
But, this method is not possible to detect.

My implementation with this is as below.

<in the my created class inherited TabActivity>
--------------------------
if ( (orgintent.getFlags() &
Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) > 0 ){
Log.d(TAG,"LAUNCHED FROM HISTORY");
tabHost.setCurrentTab(1);
}
--------------------------

please let me know if you know the solution...

Best Regards,

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment