Repository: cordova-docs Updated Branches: refs/heads/master bd6bb2dca -> b98a34ce6
added android lifecycle blub to android 5.1.0 blog post Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/b98a34ce Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/b98a34ce Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/b98a34ce Branch: refs/heads/master Commit: b98a34ce6f9eb055336a91a7b702dcfc30190617 Parents: 38c5ffd Author: Steve Gill <[email protected]> Authored: Fri Jan 22 10:58:40 2016 -0800 Committer: Steve Gill <[email protected]> Committed: Sat Jan 23 23:55:33 2016 -0800 ---------------------------------------------------------------------- www/_posts/2016-01-22-cordova-android-5.1.0.md | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b98a34ce/www/_posts/2016-01-22-cordova-android-5.1.0.md ---------------------------------------------------------------------- diff --git a/www/_posts/2016-01-22-cordova-android-5.1.0.md b/www/_posts/2016-01-22-cordova-android-5.1.0.md index 6df0733..bf4e73b 100644 --- a/www/_posts/2016-01-22-cordova-android-5.1.0.md +++ b/www/_posts/2016-01-22-cordova-android-5.1.0.md @@ -10,6 +10,15 @@ tags: news releases We are happy to announce that `Cordova Android 5.1.0` has been released. +This update introduces a new API for Android plugin authors. Plugins that launch external activities can now better handle method calls on devices that are low on memory. In that scenario, the Android OS will sometimes kill the Cordova Activity when it is pushed into the background by the external Activity. This causes the plugin to lose any callbacks they have pending in the javascript. The new API allows the results of external Activity calls to be delivered via the resume event that is fired in the javascript after the Cordova Activity is destroyed and recreated. Plugin authors wishing to implement the new API should read the updated plugin guide [here](http://cordova.apache.org/docs/en/dev/guide/platforms/android/plugin.html). + +Two core plugins support this new API and have been updated to fix longstanding bugs: + +* `[email protected]` (fixes [CB-9189](https://issues.apache.org/jira/browse/CB-9189)) +* `[email protected]` (fixes [CB-10159](https://issues.apache.org/jira/browse/CB-9189)) + +Application authors are encouraged to update both their plugin and cordova-android versions to take advantage of these bug fixes. Please note that the aforementioned fixes require changes to your application as well. More information can be found in the READMEs of each of those plugins and in the new [Android lifecycle guide](http://cordova.apache.org/docs/en/dev/guide/platforms/android/lifecycle.html) that has been published to the Cordova documentation. This guide provides explanations and guidance on how to handle low memory scenarios on the Android platform as well as integrate the new resume APIs into your application. + To upgrade: npm install -g cordova --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
