Android gets the name of the currently running activity

This example describes the method of Android to obtain the name of the currently running activity, which can avoid notification in instant chat. Share with you for your reference. The specific methods are as follows:

Recently, you need to know which activity the current activity is when doing im. Sort out the two methods yourself

The first one: it should be more convenient (it cannot be used in the service)

I hope this article will be helpful to your Android program design.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>