Get Current Activity in Android Application
I want to know in which activity is currently running in my appliction . I'm used View view =(View)getCurrentFocus(); but it returns null value. Is there any function开发者_StackOverflow社区 like getCurrentActivity()?
Thanks in advance
To get the Class name of the current activity.
this.getLocalClassName()
精彩评论