Instance of abstract class with hidden constructor
问题 I need to create an instance of an abstract class with hidden constructor, the class looks like the following: public abstract class TestClass { /** * @hide */ public TestClass() { } } creating an concrete class does not work, because the constructor is not visible and calling the constructor via reflection API also doesn't work because the class is abstract. I need to create an instance of android.print.PrintDocumentAdapter.LayoutResultCallback 回答1: I ran into precisely the same problem (for