Skip to content

A small application to demonstrate the API exposed by the cordova plugin: com.darryncampbell.cordova.plugin.intent. Wraps the Android intent functionality of sendBroadcast and startActivity

License

Notifications You must be signed in to change notification settings

dgfmdrv/plugin-intent-api-exerciser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-intent-api-exerciser

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

Installation

git clone https://github.com/darryncampbell/plugin-intent-api-exerciser.git
cd plugin-intent-api-exerciser
cordova platform add android
cordova run android

Usage

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.

The application UI

About

A small application to demonstrate the API exposed by the cordova plugin: com.darryncampbell.cordova.plugin.intent. Wraps the Android intent functionality of sendBroadcast and startActivity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.4%
  • HTML 20.7%
  • CSS 15.9%