Community Questions & Answers
Pick color from cameraimage
Hello! I want to create a feature where the user takes a photo, pick a point in that photo, and then the app tells the user which color it is. So how do i do this? I get that i can put the image in an imageview and make a blob out of it, but then i have...
Build Media module of Titanium again!
I want rebuild Media(Camera) module of Titanium(version sdk 3.1.1). Who can give and take to me? I rebuild this module because I want set color effect, set white balance, set flash mode, set scene to camera. Help me!! Who did this can give and take to me?
Get dominating / average color of picture taken by cam
I want to build an App, that is able to take a photo of e.g. a product and then compare the dominating or average color of this product with a color table. Is it possible to get this rgb-value out of an image taken by the camera? Maybe there is a solution...
Strange behavoir of allowEditing property of showCamera with overlay in Alloy.
Hello experts, i was just testing showCamera method by setting overlay with two buttons only but what i got is i was not able to click of any button in camera overlay. strange thing is if set ```allowEditing:false``` then it works as expected but if i set...
/build/generated/java" does not exist!
I create Titanium modules. When i build then outlog error. Who can help me? ~~~ /Users/pvhieu/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.v20130523143543/module/android/build.xml:228: srcdir...
Replace Camera Image
I've got a button that opens the camera, allows taking a photo, and then the photo is put into an image view. It works, except when I try to hit the button again and replace the photo. Anybody have any experience with this?...
Take a photo and save it in a winow
Hi please help anyone urgent...i can take a photo from this code but after taking the pic I have to send to the window of my app. please help me how to save those pics in a window. Thanks.. ~~~ var pButton = Titanium.UI.createButton({ title: '', ...
Take a pic and send to the tab
Hi this is my code, please help me how to send the pics when to the tab in the window when the pic is taken. tHanks ~~~ var pButton = Titanium.UI.createButton({ title: '', bottom:10, left:80, height:40, width:40, ...
set effect color to camera android
How to set color effect white balance camera for android? Help me!!!
Take a pic when a button is clicked
Hi I want to take a pic from camera when a button is clicked, Iam able to get without clicking the button, but when I add a button to addEvntListener, Iam unable to get when a button is pressed. Please help me out. var pButton =...
upload images
Hello, is there a way to upload an image to an external server app?. This is an image taken with the camera following this code you can take a picture and save it, but I would like to send it to a server. Available in titanium a function to upload images...
iOS module with custom camera view using AVFoundation
Hi, I'm trying to make a module that returns a view with stream of output from the camera as its background (I want to ultimately develop a fully custom camera view without the iris animation. I read a good amount of tutorial on creating a custom camera...
Camera overlay view can't be animated (scaled, transformed etc) it is used as cameraOverlay in Ti.Media.showCamera()
I opened a few questions with specific problems on iOS: [1](http://developer.appcelerator.com/question/134753/bug-report-when-orientation-changes-iphoneipad-messes-up-views#comment-121128),...
upload files
Hello I would like to help with this problem, which is to take all the pictures taken with my camera and send them to a server ..... I think I have a variable for each photo and deliver them client.send ({"image1" : imagen1.png, etc}) I have...
Adding an overlay to showCamera causes the camera to take 320x240 size images (SDK 3.1.1.RC)
Problem -------- Adding an overlay to showCamera causes the camera to take 320x240 size images. Can you reproduce this, and does the code look right? **NOTE:** This is a bug I found in the Titanium SDK 3.1.1.RC (_release candidate_). Environment...
Loading images onto table row is very slow...
Hi Guys, When loading images (taken with iPhone camera) into a table row the app freezes for a few seconds. Im looking for a way to stop this by loading the images in a different method. What is the best way to get images into a table row without it...
Flash Mode in camera
Hi I am using sdk version 3.1.1.v20130520171545 .On the custom camera overlay I have a flash mode option,which toggles between flash on and off.I have tried ~~~ Ti.Media.setCameraFlashMode(1); ~~~ and...
Android - Adding menu items to Camera window/view with onCreateOptionsMenu
I am currently trying to add menu items to a camera window/view but I cannot seem to add them successfully. I want to add menu items to the menu that is displayed when the menu button is pressed. With the other windows I can add them in the...
[iOS iPhone 4] Camera overlay bug?
I'm trying to add an image overlay to the showCamera(). showCamera() itself works fine. But when I add (any) overlay, the showCamera() view seems stretched out vertically. (tap to focus area is not a square space, but more like a rectangle) When I take...
Problem with the Android emulator
Hello, I am facing a stronge problem with the Android emulator: When I tried to run any application into my workspace, the emulator didn't work, and I got this message: http://img15.hostingpics.net/pics/288141erreur.jpg What's wrong with my IDE? I...
iOS Camera Overlay Similar to Instagram
Hey Guys, So I've got a camera question that could be very simple, or not even possible, so hopefully I explain it correctly. I'm trying to build something very similar to Instagrams camera setup (in terms of design, not functionality/use this is for a...
APP rejected for "auto-disables the shutter sound of the camera" ?
Today my APP was rejected for the reason as below: We found that your app auto-disables the shutter sound of the camera when a photo is taken, which does not comply with the iOS Developer Program License Agreement: but, I only use the function showcamera...
Camera Overlay and allowEditing
Hi there, Anyone else had trouble adding an overlay to the camera as well as wanting to edit the image before applying it to a view? When allowEditing is true, the custom overlay buttons do not work so I'm unable to invoke the button to take the...
Take pictures from the App and get on my computer
Hi, In my last post I was wondering how to take pictures from my app(a shortcut to the camera), select this specific pictures(maybe rename them with a specific name start like title1, title2. so i can select directly from the code), and send to a default...
How do i use my app to send pictures to a DropBox account
First of all, i already wanna thanks everyone who tried to help me. So this is what i wanna do from my app i will have a shortcut to take pictures, then rename this pictures with a specific name start, like title1, title2, title 3. After this is done the...
show.camera not work
Hello Overall I have a code to take a photo in android, but pressing the button to take the photo, nothing happens, only hear the noise when you open the camera focus. Any help for this, please ~~~ Titanium.Media.showCamera({ ...
How to close the camera/capture photo when leaving the photogallery.
I want to close the whole "camera capture view" when closing the photogallery. But I cant figure out how to do it. Please see the code with the cameraview and overlay: ~~~ var gallery = Ti.UI.createButton({ bottom:10, width:120, ...
Defauylt camera view with photogallery view/button.
Hi, When Im opening the camera in my app I want, in the camera overlay (IOS default), to be an option to choose the photogallery. Exactly like the IOS camera. How can I do this?
Camera in portrait mode
Hi folks, I am developing an overlay for camera and assigning it to the overlay property of Ti.Media.showCamera. Now according to the designs that we have ,the overlay is in portrait mode.But the camera in Android always opens in landscape mode. According...
camera image is rotating?
hi friends hear i am doing camera application but after taking picture i am saving it in to gallery and as well as i am displaying on to new window at that time my image is rotating so could u guys please help me (my issue is image is rotating after...
Animations
Hi all i'm new to mobile development kindly share me tutorials/videos of animation module or properties used in titanium studio. As i'm beginner to mobile development kindly share me tutorials/videos with examples it would be grateful........
Image Converting
Hi, i want to know how can i convert image from png to jpeg using titanium? the source of the image can be camera of photo library
Open Gallery when camera is opened
Hi, I'm trying to select a picture from gallery (with the camera already opened) to overlay with the camera view. The problem is that I cant take a picture after select the image from the gallery, because some camera problem (works if I dont open the...
Android Camera.app size
On certain devices, when you take a photo there isn't enough memory available to take the e.media blob and resize it down from say an 8mp image > 640 x 480. The only way I am able to get around this is to put my resize function in a try/catch and the...
Issues with search query and camera.
Hi, I am Madhur Kumaria, I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app: 1) is from ACS cloud Service regarding search and query section. I want to fetch...
Android Crop Image Error
Hi, i have implemented a crop image for Android 4.0.3 and Titanium sdk 2.1.0. I open the gallery of android , crop and save. My problem is that I cannot obtain the cropped image. In the Emulator works all fine and the path is returned in e1.intent.action....
Saving captured image to app's photo album in gallery (how to create album?)
Hi, is there a way to save captured image to a created Titanium app's photo album in standard photo gallery? I know there is 'saveToPhotoGallery : true', but how to create specific album for both Android and iOS and save to it?
Back button pressing on camera screen with overlay
Hi everyone. I have next problem: I'm using camera overlay on both platforms. Camera is opening by pressing button. The problem is when I'm pressing hardware back button on Android, app is closing overlay and showing me black screen, which is closing...
Get frame from the camera in AR mode
Hi, There is any ways to get the frame contents from the camera ? My goal is to make an AR apps. The frame is important for me in order to recognise an image...
Save a Photo and Show a Gallery
Hi everyone... i'm trying to save photo's from the camera and after that show all the photos in some kind of gallery. When i open the app and take a few photos, all of them were saved correctly. My code...
Getting the files inside the DCIM
Hi Everyone, I am trying to get the images taken from camera. And to do that I am trying to get the list of files(image files) residing in the `DCIM\Camera` folder of externalDirectory. I have tried some ways. Find around but couldn't found the proper...
Samsung device image capture issue .
Hello All, Currently i am facing an issue in Android for Samsung device. In my app i need to capture an image from device and need to upload on server. after capturing image when i back to my app, i event.media object of captured image when i show it on...
App crash on TI.Media.showCamera and Ti.Media.openPhotoGallery
Hi, I am working on the iPhone build for my app using Titanium SDK 3.0.0. For images, the user can either click a picture or select from a gallery. The following code works fine for Android. but the app crashes in iOS(emulator as well as device). Here...
How to take a photo using camera inside a view for an app in android and iPhone?
Hi, Is there any way to take a photo inside a view using camera on android and iPhone app? sample image: 
sudden closure of the application
Hello every body, I just compile my application directly on my android smartphone but once I opened it I was told in a dialog box "sudden closure of the application (process jamal.ensa.com) try again" please how solve this problem knowing that I...
Images from the camera to webview
Hello to all, It is possible to communicate with a webview using Titanium.App.addEventListener or Titanium.App.fireEvent? I intend to communicate by sending images from one camera to webview. as is possible? I'm using alloy framework Thanks in advance
Image upload directly from camera
Hey everyone, This is more of a solution than a question. I've just spent the morning trying to work out how to upload an image file. There are a few code examples on here but none of them seemed to work. I think the key is to specify the headers when...
Get file from inside DCIM > Camera
Hello all, I want to get a video file that is saved in Camera folder of DCIM of SDcard. How can I do it ? Can anyone help me out? I am able to get files that are in app's directory. But I want to get the file from DCIM > Camera folder. Thanks.
saveToPhotoGallery = false, doesn't work in Android
Hello. I'm calling the Android camera. I don't want the camera saves the photos in photo gallery, so I put in my code: ~~~ Ti.Media.showCamera({ saveToPhotoGallery:false, mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO], ....... ~~~ But the photos are...
Camera buttons in overlay don't work
Can't seem to make the buttons work at all. They appear but they don't listen to touch events at all any tips? ~~~ var overlay = Ti.UI.createView({ //backgroundImage:'/images', width:'100%', height:'100%' }); var overlayTitle =...