{ "id": "136652", "key": "AC-992", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-09-17T20:48:26.000+0000", "created": "2014-09-16T12:14:25.000+0000", "labels": [ "Android", "Camera", "Ti.Media.Camera" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In android when I take pictures with option saveToPhotoGallery:false. Some pictures do show up in the app \"photos\" and are backed up to google+.\r\n\r\nTo reproduce.\r\nRun the example code below.\r\nTake some pictures, switch to app \"Photos\" press refresh btn, go back take some pictures, go back to photos.\r\nI did it with 15 new pictures. And 3 of them showed up in google+\r\n\r\n{code:title=PicutureError.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({title:'picture error revealer'});\r\nwin.open();\r\n\r\nvar directory = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'img');\r\n\r\nvar scrollView = Ti.UI.createScrollView({height:Ti.UI.FILL,width:Ti.UI.FILL,layout:'vertical',contentHeight: 'auto',showVerticalScrollIndicator: true,showHorizontalScrollIndicator: false,});\r\nwin.add(scrollView);\r\n\r\nvar addPictureButton = Ti.UI.createButton({title:'Add Picture',width:Ti.UI.SIZE,height:Ti.UI.SIZE});\r\naddPictureButton.addEventListener('click',takePicture);\r\nscrollView.add(addPictureButton);\r\n\r\nfunction takePicture(){\r\n Ti.Media.showCamera({\r\n saveToPhotoGallery:false, //IMPORTANT PART\r\n success:processNewPicture,\r\n cancel:function(){Ti.API.error('picture got cancelled');},\r\n error:function(){Ti.API.error('error during take picture');},\r\n allowEditing:false,\r\n mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],\r\n });\r\n};\r\nfunction processNewPicture(event){\r\n if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO && event.media) {\r\n var imageView = Ti.UI.createImageView({\r\n width:Ti.UI.FILL,\r\n height:120,top:5,\r\n image:event.media\r\n });\r\n scrollView.add(imageView); \r\n }\r\n else\r\n {\r\n Ti.API.error('process new picture: wrong type or no media'); \r\n }\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Some token photos show up in the stock \"photos app\". saveToPhotoGallery option does not work", "creator": { "name": "bar b", "key": "bar b", "displayName": "Bar Bruy", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "bar b", "key": "bar b", "displayName": "Bar Bruy", "active": true, "timeZone": "Europe/Berlin" }, "environment": "LG G tab 8.3 and Nexus 7\r\nAndroid 4.4.2", "comment": { "comments": [ { "id": "324347", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nthis should be a bug in Android. Check this answer: \r\n\r\nhttp://android.stackexchange.com/a/66774\r\n\r\nPhotos will check all over your phone for new pictures and will \"backup them\". \r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-17T20:48:26.000+0000", "updated": "2014-09-17T20:48:26.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }