public static void navigateToActivityByClassName ( Context context , String className ) throws ClassNotFoundException { Class < ? > c = null ; if ( className != null ) { try { c = Class . forName ( className ) ; } catch ( ClassNotFoundException e ) { QuickUtils . log . d ( "ClassNotFound" , e ) ; } } navigateToActivity ( context , c ) ; }
Navigate to an activity programmatically by providing the package + activity name