Activity Replacement

Function Introduction

Activity replacement allows you to configure jumps between app activities. Before use, you need to understand several common concepts in Android.

Activity - Activity

In the Android world, pages are usually something called Activity (Chinese can be translated as Activity); so page jumps can now be unified as: Activity jumps.

How are Activities identified?

Each Activity has an identifier, just like each webpage has a path.

The format of Activity identifiers in Android is usually:

"${package name}/${Activity name}"

For example, WeChat's home page Activity identifier is:

"com.tencent.mm/com.tencent.mm.LauncherUI"

What's the use of it?

Let's look at a requirement first: An app has three Activity pages, A, B, C;

Under normal circumstances, the app's startup sequence is A--->B--->C

Now Xiaoming has a requirement - he doesn't want to see page B, and hopes to jump directly from A to C. Is that possible?

Yes!

How to use it?

Following the example above, when the Activity starts, just figure out how to replace B with C; that is, substituting one thing for another, Activity Replacement.

Therefore, with the Activity Replacement function, you can simply add a configuration to replace B with C by knowing the Activity pages of B and C.

Example as shown in figure:

activity-replace

So how do you know what Activity pages these apps have?

Thoughtful developers have prepared this function for you. Turn on Thanox Settings---Developer---Show Current Activity; after this, each Activity of applications will be displayed as a floating window. Tap the floating window to copy the Activity identifier.

show-current-activity