-
Notifications
You must be signed in to change notification settings - Fork 4
Inter-application IO via android.content.Intent #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for the suggestion. I'll try to implement it asap. |
@FrankWestlake I just read some documentation about Intents and inter-app interactions, however I'm not sure what
|
I'm not an Android programmer, I just program Android, so I've only learned what I need for my own applications. ACTION That action is then in your manifest's intent filter so that when other applications use it Android knows to call your Activity. In your Activity.onCreate() use getIntent().getAction() (watch for null) to determine the action if it is a launcher start-up or the calculate-and-return. DATA CATEGORY
I think Android only uses the category when it needs to search for an application that might be able to satisfy the intent. If a calling application does not know who to call it just gives Android the action, category, and possible data, and Android checks all manifests for an application to call. But your application can also be called explicitly by
Without the "Intent.setClassName()" Android should find your application anyway because of the action string in your IntentFilter. Your result would be returned via setResult(): setResult( Frank |
OK, thanks for the explanation. I made a first basic implementation in 2108b12 with the custom action technique. What actually works in 2108b12 is the following: in |
Okay, I think this can be closed. This will be available in the next release and it's documented in the README. |
Please add inter application input and output via android.content.Intent. Any application can then have an expression evaluated by this application via android.app.Activity.startActivityForResult() and returned to it via android.app.Activity.OnActivityResult().
The text was updated successfully, but these errors were encountered: