A small application to demonstrate the API exposed by the cordova plugin: com.darryncampbell.cordova.plugin.intent which provides a shim layer on top of Android's intent mechanism.
The com.darryncampbell.cordova.plugin.intent plugin can be found at the following locations
Please always use the latest version of the plugin
git clone https://github.com/darryncampbell/plugin-intent-api-exerciser.git
cd plugin-intent-api-exerciser
cordova platform add android
cordova run android
The UI is self-explanatory:
- Buttons are provided for each way to send intents (broadcast, startActivity, startActivityForResult).
- The application automatically registers for broadcast intents onResume() and unregisters in onPause().
- One button demonstrates how the application can use startActivity to launch itself and receive the intent associated with that launch; to achieve this the plugin automatically registers an intent-filter for
com.darryncampbell.cordova.plugin.intent.ACTION
- Buttons are yellow, the results received are coloured blue.