Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle message? #84

Closed
houugen opened this issue Apr 21, 2022 · 1 comment
Closed

How to handle message? #84

houugen opened this issue Apr 21, 2022 · 1 comment

Comments

@houugen
Copy link

houugen commented Apr 21, 2022

@OverRide
protected void onCreate(@nullable Bundle savedInstanceState) {
Intent data = getIntent();
Handler handler = this.y;
Message message = Message.obtain(handler, 1);
message.obj = data;
this.y.sendMessageDelayed(message, 100L);
}

private Handler y = new Handler(Looper.getMainLooper()) {
@OverRide
public final void handleMessage(Message message) {
super.handleMessage(message);
Object obj = message.obj;
ShareTransActivity.this.startActivity((Intent) obj);
}
};

Hey, can I increase the “Propagation” or sth. to check out this path?

@houugen houugen closed this as completed May 12, 2022
@houugen
Copy link
Author

houugen commented May 12, 2022

Solution found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant