from the docs we see we are able to provide an acitivity through factory method.
so i am working on a solution where i can take an activity and decorate functionality ontop of it. but i do not own the activies. i only know there names. so this is what i have so far:
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
AppComponentFactory.instantiateApplication(classLoader, SomeoneElsesActivity.class.name)
i will be calling this from my own activity to open SomeoneElsesActivity.class . But im not clear how i can add extra functionality. would i just spawn a background service like intent service after the activity opens ?
and if i am able to use the wrapper is there a way to disable other people from doing this to my activity ? i do not want any other developer to be able to take my activity and wrap functionality around it and call it again.