I'm trying to send and intent which contains a String. I want to share this intent implicitly, so I don't want to specify the app who will receive this Intent.
Let me explain, the string I want to send will be send thank's to the Intent, and in the same app put in the clipboard, and then I paste the clipboard thank's to AccessibilityService in another app. The intent will serve to be catches first by the clipboard, and then by another app (with a script code to this intent, because the app is too already created but can't be edited.
So I started to do this :
Intent intent = new Intent();
intent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
intent.setType("text/plain");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
from the developer.android site, but it open a menu in which I must chose an app to share the intent, that's what I won't.
Could you help be?
NOTE: I'm French, sorry for my poor English