public static String getTopActivityClassName ( Context context ) { ComponentName activity = getTopActivity ( context ) ; if ( activity == null ) { return null ; } return activity . getClassName ( ) ; }
Returns Class name of top activity