Run Activity from another app

2

Is it possible to run an Activity from another app? I do not want to call it through an intent, something like this:

public class AnotherActivity extends com.otherapp.app.ActivityName
{
     // Aqui vai conter o código original da Activity
}

I know you can do this with NativeActivity by implementing the original methods within Activity and loading the app's .so library. But the app in question does not have NativeActivity.

My intention is to do a run-time modification of the app, for example: Assuming that the other app's Activity has the getIcon () method, overwriting it in my AnotherActivity (which is the same as the Activity of the app) I can change the icon.

    
asked by anonymous 05.07.2018 / 15:48

0 answers