[AC-4967] Selecting a photo (Ti.Media.openPhotoGallery) on Google Pixel (API 25) crashes immediately
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-18T13:26:11.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | Ti.Media.openPhotoGallery, android |
Reporter | Cameron |
Assignee | Shak Hossain |
Created | 2017-05-17T02:49:33.000+0000 |
Updated | 2017-05-18T13:26:11.000+0000 |
Description
The code snippet below successfully opens the photo gallery. However, once a photo(s) is selected, the app immediately crashes.
No error message in the console. Just the generic Android message of "myApp keeps stopping"
This bug does not seem to affect other devices with API 24 or 23. No specific pattern discovered yet, except that it definitely crashes on the Google Pixel API 25 emulator and the real device.
Ti.Media.openPhotoGallery({
allowMultiple: true,
success: function(e) {
Ti.API.info(JSON.stringify(e));
},
cancel: function() { },
error: function() { }
});
Sorry, for some reason the system doesn't let me post issues to TIMOB. Only to either Appcelerator - Inbox or Aptana Studio. Not sure if that is by design, but if I made a mistake in where to file this, my appologies
Hello, Are you providing the storage permission during run-time? Try using the below code.
Tiapp.xml in Android section.
Thanks.
Ok well, you are a genius. Sorry I didn't know about these permissions. That solved it!