Answer the question
In order to leave comments, you need to log in
How to take value in AppCompatActivity from Intenta??
How to take value in AppCompatActivity from Intenta?
I run it like this:
Intent intent = new Intent(getActivity(), GG.class);
Bundle bundle = new Bundle();
bundle.putString("url", questionObject.getHref());
intent.putExtras(bundle);
startActivity(intent);
String url = null;
Bundle bundle = savedInstanceState;
if (bundle!=null) url = bundle.getString("url", null);
Answer the question
In order to leave comments, you need to log in
Bundle extras = getIntent().getExtras();
if (extras != null) {
url = extras.getString("url", null);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question