In my Android project, I launch an application from another one, by using an intent, in this way:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("edu.dhbw.andar.sample","edu.dhbw.andar.sample.CustomActivity"));
startActivity(intent);
And it works: the second application starts without problems.
Now, I wish to pass a text string from the first application to the second one. Is there a way to do that?
Thanks
Put an extra String in the intent (using intent#putExtra()) and read it in the new application:
In the first application:
In the second: