Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3002] iOS + iPad: Media - openPhotoGallery not working more than once

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-21T14:34:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelstc-more-info
ReporterPablo Albrecht
AssigneeMauro Parra-Miranda
Created2011-11-27T05:54:17.000+0000
Updated2016-03-08T07:48:01.000+0000

Description

Problem

Cannot open a photo gallery two times in a row

Test case

* launch the following code from the iPad * hit a button - it'll open the gallery * close it by touching anywhere on the screen * re-hit the same button - the photo gallery won't open.
var win = Ti.UI.createWindow();

b1 = Ti.UI.createButton({title:"P gallery",top:100,width:200,height:90});
b2 = Ti.UI.createButton({title:"P gallery",top:200,width:200,height:90});
win.add(b1);
win.add(b2);
b1.addEventListener('click',function(){
    alert("Opening the gallery");
        Ti.Media.openPhotoGallery({success:function(f){alert("Success");},
                mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
                allowEditing:true});
 
});
 
b2.addEventListener('click',function(){
    alert("Opening the gallery 2");
        Ti.Media.openPhotoGallery({success:function(f){alert("Success");},
                mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
                allowEditing:true});
 
});
win.open();

Discussions

Asked on the Q&A and apparently it is a bug. - please provide the link

Comments

  1. Paul Dowsett 2011-12-29

    Thanks for raising this ticket, Pablo Would you mind checking the fields for my comments, and completing the information. Then I will escalate it to the main project. Cheers
  2. Paul Dowsett 2012-01-05

    Pablo Would you mind providing the missing information so that I may escalate the issue? Thanks
  3. Paul Dowsett 2012-01-10

    Is this still a problem for you? Please provide the missing information, so that I may escalate it. Thank you
  4. Mauro Parra-Miranda 2012-02-21

  5. Mauro Parra-Miranda 2013-11-24

    Closing since it's a dup.

JSON Source