Dear Erel,
Thanks a lot. I also can learn a lot from what is discussed here by you and Amalkotey.
Based on this topic, I tried and want to see if the user is currently opening and working with Phonebook (Contacts). I used your codes with Reflector, but instead of getting the Field "BaseActivity", I get "TopActivity" and can get the Log as below:
ComponentInfo{com.sonyericsson.android.socialphonebook/com.sonyericsson.android.socialphonebook.DialerEntryActivity}
I guess the following com.sonyericsson.android.socialphonebook.DialerEntryActivity is specific only for SONY phone (I am using SONY phone for test).
Just quick question, is there any way to know that User is opening and working with Contacts in general (for all Android phone).
Hope my queston is still related to this topic so I don't need to create a new thread for.
Thanks & Regards,