1

I need send a message from one app to another while both apps are in execution in foreground (I'm using multiview). This will be a simple one-way only communication the message allows me to change the behaviour of the second application (the one receiving), I just need to communicate a pretty simple boolean/int value. Up to now I'm doing so trough Intent and startActivity() method but this will trigger an onCreate() event on the receiving app that leads to an unwanted behaviour.

    PackageManager manager = getPackageManager();
    Intent intent = manager.getLaunchIntentForPackage("it.tux.gcs");
    intent.putExtra("BACKWARD_FLAG",camera.backward);
    intent.addCategory(Intent.CATEGORY_LAUNCHER);
    startActivity(intent);

There's a way to accomplish that? I looked in Android docs but I've been able only to find a lot of startActivity() base examples.

weirdgyn
  • 886
  • 16
  • 47

0 Answers0