is it possible to modify the layout of other running applications

58 views Asked by At

Let's say I have an application running in the background that is running displayed on top of other applications, When I run the following function it will change the text, image or color of the currently displayed layout

I have the following code but it only works in the application itself not in other applications


int layoutId = getResources().getIdentifier("main", "layout", "package");


LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(layoutId, null);

TextView textView = view.findViewById(R.id.textview_id);

textView.setText("new text");


setContentView(view);

If it is possible then what should I learn, or references that I can learn

0

There are 0 answers