lundi 30 mars 2015

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






Aucun commentaire:

Enregistrer un commentaire