Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:57:27+00:00 2026-06-11T04:57:27+00:00

I am using titanium sdk for mobile app development. I was just searching for

  • 0

I am using titanium sdk for mobile app development.

I was just searching for any way that i can prevent the camera from saving the image. I dont want to save the image till a few steps down the line so that all the information has been verified.

What i mean to say is that suppose after after clicking the image through the app if user selects the cancel button the image should not be present in the gallery.

Functionality is needed both on IOS and android.

Thanks a lot …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:57:28+00:00Added an answer on June 11, 2026 at 4:57 am

    You need to set the saveToPhotoGallery to false and on the success function of the Titanium.Media.showCamera() put your logic and when they click on the save button save to the gallery

    Titanium.Media.showCamera({
        success:function(event) {
            // called when media returned from the camera
            Ti.API.debug('Our type was: '+event.mediaType);
            if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
                //
                //add your logic here
                //
    
                //onSave
                Titanium.Media.saveToPhotoGallery(event.media);
            } else {
                alert("got the wrong type back ="+event.mediaType);
            }
        },
        cancel:function() {
            // called when user cancels taking a picture
        },
        error:function(error) {
            // called when there's an error
            var a = Titanium.UI.createAlertDialog({title:'Camera'});
            if (error.code == Titanium.Media.NO_CAMERA) {
                a.setMessage('Please run this test on device');
            } else {
                a.setMessage('Unexpected error: ' + error.code);
            }
            a.show();
        },
        saveToPhotoGallery: false,
        allowEditing: true,
        mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple mobile app in Titanium that I'm using to debug the
Hope this makes sense, I am using Titanium mobile to build an iPhone app.
I'm creating android app using Titanium mobile. How do I create this interface using
I'm using Titanium to develop an Android/Ipad app. I can't find the exact dp
I am using Titanium to build some mobile apps and I noticed that this
I have an Android app created using Titanium's 1.8.2 SDK. I recently got it
I'm developing an app for iPad (using Titanium Appcelerator) that is designed to record
I want to parse following JSON using Titanium Appcelerator Mobile SDK [{City:null,Distance:469,Email:null,Latitude:0,Longitude:0,Name:Cretin-Derham Hall,PhoneNo:null,SchoolId:75,State:null,Zip:null},{City:null,Distance:213,Email:null,Latitude:0,Longitude:0,Name:East Ridge,PhoneNo:null,SchoolId:76,State:null,Zip:null},{City:null,Distance:26,Email:null,Latitude:0,Longitude:0,Name:Hastings,PhoneNo:null,SchoolId:78,State:null,Zip:null},{City:null,Distance:116,Email:null,Latitude:0,Longitude:0,Name:Stillwater,PhoneNo:null,SchoolId:81,State:null,Zip:null},{City:null,Distance:0,Email:null,Latitude:0,Longitude:0,Name:White
I'm building an iPhone app using Titanium Mobile and using the HTTPClient. Whenever I
I am using Titanium to develop a mobile app. I have stuck in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.