You need to sign in to do that
Don't have an account?
Camera doesnt work in sample hybrid app (contact explorer)
Hi, so i follow the guide provided here to create a Hybrid mobile app (Android) in Eclipse.
Everything seems ok, i am able to load contact list but after i capture a photo for the contact, it stays there and did not return back to my apps. the log shows:
09-26 05:24:22.827: E/SoundPool(289): error loading /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.827: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.838: E/SoundPool(289): error loading /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.838: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.847: E/SoundPool(289): error loading /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.847: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.847: E/SoundPool(289): error loading /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.887: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.897: E/SoundPool(289): error loading /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.897: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
09-26 05:24:22.897: E/SoundPool(289): error loading /system/media/audio/ui/KeypressStandard.ogg
09-26 05:24:22.928: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
09-26 05:24:22.928: E/SoundPool(289): error loading /system/media/audio/ui/KeypressSpacebar.ogg
09-26 05:24:22.928: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
09-26 05:24:22.937: E/SoundPool(289): error loading /system/media/audio/ui/KeypressDelete.ogg
09-26 05:24:22.977: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
09-26 05:24:22.977: E/SoundPool(289): error loading /system/media/audio/ui/KeypressReturn.ogg
09-26 05:24:22.977: W/AudioService(289): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
09-26 05:24:22.987: W/AudioService(289): onLoadSoundEffects(), Error -1 while loading samples
is this the reason causing the problem? Im using Eclipse Android Emulator.
Please advice is there any working sample else where?
Thanks
I have observed this behavior in the past in some emulators. Some Android emulators are quirky with respect to camera behavior, depending on the configuration. Please try to use an Android device to test camera related functionality.
I tried on Samsung S3. Able to take photo but when return back to my Apps, nothing happen, the photo is not uploaded to my Salesforce.
Here is my VF code:
Any thoughts please?
I've modify my Apex page to:
And my extension class:
But it still doesnt add an attachment to my salesforce. Any help pls?
This blog post might help you - Developing Hybrid Apps with the Salesforce Mobile SDK. Scroll down to the section titled 'Customize your Hybrid Mobile Application to Use the Device Camera'.
Can you try debugging your code to see if the binary image data is being sent to Salesforce or not?