I am developing an android library named samplelib.jar which contains a method executeFlow() in a seperate class CallMyFlow.
I added this library in my main project and called CallMyFlow.executeFlow()
at the time of OnCreate() which works perfectly.
But i need the executeFlow() method should run automatically without calling it in OnCreate(). I want to simply add that jar into my project. And the library itself want to find the OnCreate() is happening and it should automatically call the executeFlow() method.
I need not want to add any extra code into my main project(i.e) calling the method in OnCreate(), or extending any custom class in library. Is it possible? I tried it, but could not get the result. Any ideas are welcome.