S
S
Semyon Semyonov2016-11-14 13:53:19
Android
Semyon Semyonov, 2016-11-14 13:53:19

How to intercept the actions of someone else's activity?

My app launches an activity from a linked library. Those. it opens, which I do not like how it works. In particular, the back button. I would like to be able to intercept the return method call from an activity in a linked library. How can I do that? The activity there is not mine at all, I literally write: PseudoLib.showMegaBoom() and an activity appears from which others open, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2016-11-14
@gim0

Inherit the necessary classes, incl. launched activity, and overwrite the necessary methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question