0 Replies Latest reply on Jan 21, 2012 6:25 AM by VivD

    Problem implementing image sharing feature using ANE

    VivD Level 1

      Has anyone implemented an image sharing feature on an Android app?


      I tried out the ANE provided here http://www.smallscreendesign.com/2011/09/29/air-native-extensions-rock/ , but have been receiving the error below and have no idea what to do next.


      TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at com.ssd.ane::AndroidExtensions$/get context()[/Users/anto/git/Android-AIR-Extensions/AndroidExtensions/src/com/ssd/ane/Androi dExtensions.as:158]

                at com.ssd.ane::AndroidExtensions$/shareText()[/Users/anto/git/Android-AIR-Extensions/Androi dExtensions/src/com/ssd/ane/AndroidExtensions.as:48]

                at views::ShareTextView/shareBtn_clickHandler()[/Users/VivShwz/Downloads/mr-archano-Android- AIR-Extensions-d53f591/AndroidExtensions_Demo/src/views/ShareTextView.mxml:12]

                at views::ShareTextView/__shareBtn_click()[/Users/VivShwz/Downloads/mr-archano-Android-AIR-E xtensions-d53f591/AndroidExtensions_Demo/src/views/ShareTextView.mxml:59]


      I downloaded the code from https://github.com/mr-archano/Android-AIR-Extensions and imported the project folder (AndroidExtensions_Demo) in Flash Builder 4.6, changed the air version to 3.1, changed the flex compiler to 4.6 as that is what I’m using and ran it on the device.

      However, when I clicked on Share Text button, I got the error shown above. I'm believe I'm missing something small here but have no idea what it could be.