I am running my app on emulator. Is there anyway to see the current activity name in android studio . Like while I first launch the application I can see that I am on "MainActivity" after that if I do some action then I can see that I am on "AnotherActivity" . Rather than writing code , I just want to see the current activity name while I am debugging my app on emulator or device
I always create the TAG String into my Activities:
public final static String TAG = MainActivity.class.getSimpleName();
And then on the onCreate() just Log it:
Log.i(TAG, "I am here!");
Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.