Answer the question
In order to leave comments, you need to log in
Is there a tool to bind parameters from an intent to an activity/fragment?
Friends, hello everyone!
Is there any simple library for binding/injecting parameters behind an Intent in an Activity?
Preferably something native from Google.
Here they came up with some new DI - Hilt - maybe it has it (didn't find it)?
Something like
static void open(Context context, String code)
{
Intent intent = new Intent(context, TestActivity.class);
intent.putExtra("code", code);
context.startActivity(intent);
}
// ------------
public class TestActivity extends BaseActivity
{
@InjectExtra
protected String code;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question