I wonder if it is possible to pass string with intent to another Activity without opening that activity.
I am making Android app with 3 layouts and 3 Activities. Firt is MainActivity which is main screen. Then i have SettingsActivity and URLClickActivity. I start app with MainActivity then i must go to SettingsActivity and type in EditText my web adress. Then i go back to MainActivity and then to URLClickActivity. I tried to pass string url_adress directly from Settings to UrlClick.
Intent i = new Intent(SettingsActivity.this, URLClickActivity.class);
i.putExtra("int_adress", adress);
startActivity(i);
I tried with this code but when i run in it closes the Settings and open URLClick Activity.
Is it possible to do it somehow to direcly pass string from SettingsActivity to URLClick Activity or i must first pass string to MainActivity and then to URLClickActivity.?