Last active
December 5, 2019 15:39
-
-
Save Muhammadyoussef/6942bb7301bb9a868bfbb487879d8052 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public @NonNull Activity instantiateActivity(@NonNull ClassLoader cl, @NonNull String className, | |
@Nullable Intent intent) | |
throws InstantiationException, IllegalAccessException, ClassNotFoundException { | |
return (Activity) cl.loadClass(className).newInstance(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment