Github user riknoll commented on the pull request:

    https://github.com/apache/cordova-docs/pull/462#issuecomment-175764899
  
    @dhams you need to update your `cordova-android` platform to 5.1.0 and 
`cordova-plugin-camera` plugin to 2.1.0 to get the fix. Version 5.4.1 sounds 
like you are referring to a Cordova CLI version, which will not have pinned the 
new Android platform yet.
    
    To check the version of `cordova-android` you have, try running the command 
`cordova platforms ls` in your project directory. You want to see `android 
5.1.0` appear in the "Installed Platforms" list.
    
    To check the version of `cordova-plugin-camera`, you have, try running the 
command `cordova plugin ls` in your project directory. You want to see 
`cordova-plugin-camera 2.1.0 "Camera"` appear in the output.
    
    Let me know if that helps! Please also note that the fix is more involved 
than just updating the versions; the NullPointerException will go away, but 
you'll need to make some changes to your app to properly handle the Android 
lifecycle. Check out [this 
guide](https://github.com/apache/cordova-docs/blob/master/www/docs/en/dev/guide/platforms/android/lifecycle.md)
 for a more in depth discussion (sorry for the GitHub link, it hasn't been 
pushed to the website yet). There is an example app for the camera plugin that 
uses the fix at the end of that guide.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to