mardi 9 août 2016

Using context and intents with reflection

I'm using reflection to invoke a method which needs to start activity with intent. When I invoke the method and I get an "getApplicationContext on a null object reference" exception. I do not want to pass a context parameter to the method with the invoke. How can I use intents or get the context? getbaseContext and getApplicationContext returns null.





Aucun commentaire:

Enregistrer un commentaire