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-13159: Android: Images are blank/ have an empty entry when saved to the photo gallery #4148

Merged
merged 1 commit into from Apr 18, 2013

Conversation

pingwang2011
Copy link
Contributor

@ghost ghost assigned ayeung Apr 11, 2013
values.put(Images.Media.TITLE, imageFile.getName());
values.put(Images.Media.DISPLAY_NAME, imageFile.getName());
values.put(Images.Media.DATE_TAKEN, new Date().getTime());
values.put(Images.Media.MIME_TYPE, "image/jpeg");
if (saveToPhotoGallery) {
Copy link
Contributor

Choose a reason for hiding this comment

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

So if we are trying to save to the gallery, we essentially don't do anything since we use the temp file? In one of the comments above you say that the temp file gets deleted when the app exits... where does this happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we are trying to save to the gallery, we will move the temp file to localPath and insert the image info to the gallery database. If we don't want to save to the gallery, we don't do anything. All the temp files will be deleted in the method TiApplication.dispose() which is called from TiBaseActivity.onDestroy().

@ayeung
Copy link
Contributor

ayeung commented Apr 18, 2013

Code reviewed and functionally tested. Request Accepted.

ayeung pushed a commit that referenced this pull request Apr 18, 2013
timob-13159: Android: Images are blank/ have an empty entry when saved to the photo gallery
@ayeung ayeung merged commit d1c9b60 into tidev:master Apr 18, 2013
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

2 participants