Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-9580] Android: Images captured using Ti.Media.showCamera() are written to SD card on Android #2475

Merged
merged 4 commits into from Jun 29, 2012

Conversation

joshthecoder
Copy link
Contributor

This fixes bugs with the camera saving images to the SD card. It is not always necessary to
write the image data to the SD card (presents security concerns for some apps) and when we do
create a temporary file, we never clean them up.

See the JIRA ticket for further details about testing. It is important we test on a wide range of
devices for multiple vendors (ex: HTC, Samsung, LG). Please also run all Camera examples in KS,
this PR enables more examples that where previously iOS only.

Joshua Roesslein added 3 commits June 25, 2012 13:04
We don't need to write the image data to the FS if using our
customer overlay activity IF the user does not want it saved
to the photo gallery.
break;
}
} catch (NullPointerException e) {
//Ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we ignoring a NullPointer? If something is going to throw a null pointer exception, we shouldn't even try to call it imo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just some old code I moved. Yeah I agree it's pretty bad, but it's a hack to detect the HTC camera application.

@hieupham007
Copy link
Contributor

Code reviewed. Please address comments.

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested on Samsung Galaxy 10.1 (3.1), HTC Sensation (2.3), and Galaxy Nexus (4.0.2). Kindle Fire and Nook don't have camera but code is updated in camera classes to sync with new behavior changes. Request accepted

hieupham007 added a commit that referenced this pull request Jun 29, 2012
[TIMOB-9580] Android: Images captured using Ti.Media.showCamera() are written to SD card on Android
@hieupham007 hieupham007 merged commit 6ef891b into tidev:master Jun 29, 2012
@Amit-Thakkar
Copy link

Hey any one can tell me how to use these modules in titanium?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants