- This topic has 9 replies, 5 voices, and was last updated 10 years, 10 months ago by Brandon.
-
AuthorPosts
-
BrandonMemberTake a photo and save the result to local storage, and retrieve it!
http://cincyplanet.com/mobius/saving-camera-image-to-local-storage/
Unknown AuthorParticipantThis is behind your paywall…?
-1TC
BrandonMemberYou do have to register to see it on the blog, but it doesnt cost anything.
You can also view it in the Mobione Cheatsheet blog feed (you do not have to register for that).
steven168hMember@CincyPlanet wrote:
Take a photo and save the result to local storage, and retrieve it!
http://cincyplanet.com/mobius/saving-camera-image-to-local-storage/
Hi Cincy,
How to call the camera function to take the picture? After that, how to doing the share button inside mobione apps?
Sorry for my poor English
Steven
BrandonMemberThe camera is called with the following line:
navigator.camera.getPicture(onSuccessCard, onFailCard, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL });Im not sure what you mean by share button.
Naveed123MemberCheatsheet blog feed (you do not have to register for that).
BrandonMemberYou do not have to register for any of it now.
steven168hMember@CincyPlanet wrote:
The camera is called with the following line:
navigator.camera.getPicture(onSuccessCard, onFailCard, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL });Im not sure what you mean by share button.
Hi Cindy,
Do u hv sample for this camera function?
For the Share button, i means that function like wechat, what apps. People can select picture from album than share out to their friends.
MrJazzzParticipantI have tried this and that and everything i could chew on, nothing works for me except on my desktop with chrome.
I am trying to use the code given here and adapt it to the microphone… no luck, I am messing up somewhere.
What really makes me sad is that we do not have any clear and precise information about anything when it comes to Android programming. I could use mobione with 2 new options: Video capture and Audio captures to files.
If anyone knows how to get audio capture working and save to file… ideally 3gp or mp3, the source code and explanations would help a lot of headachers out there.
Thanks
BrandonMemberThe sample I posted requires Phonegap and will not work with a webapp.
For recording audio and video check the phonegap source samples here: http://docs.phonegap.com/en/3.3.0/cordova_media_capture_capture.md.html#Capture
-
AuthorPosts