facebook

Saving Camera Image to Local Storage

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #337380 Reply

    Brandon
    Member

    Take a photo and save the result to local storage, and retrieve it!

    http://cincyplanet.com/mobius/saving-camera-image-to-local-storage/

    #337547 Reply

    Unknown Author
    Participant

    This is behind your paywall…?

    -1TC

    #337548 Reply

    Brandon
    Member

    You 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).

    #340678 Reply

    steven168h
    Member

    @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

    #340685 Reply

    Brandon
    Member

    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.

    #341785 Reply

    Naveed123
    Member

    Cheatsheet blog feed (you do not have to register for that).

    #341843 Reply

    Brandon
    Member

    You do not have to register for any of it now.

    #342097 Reply

    steven168h
    Member

    @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.

    #346068 Reply

    MrJazzz
    Participant

    I 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

    #346116 Reply

    Brandon
    Member

    The 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

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Saving Camera Image to Local Storage

You must be logged in to post in the forum log in