Sunday, 15 March 2015

flex - How to cancel a browse dialog in AIR for Android? -



flex - How to cancel a browse dialog in AIR for Android? -

i have app here allowing user upload images. pick image open native browser var file:file = new file; file.browse();

i encounter unusual problem when user cancels upload. in fact there 2 ways can done:

a) user clicks on "back" button on device or:

b) user clicks on empty space on (native) browse dialog window.

in first case, air fire event.cancel event , fine.

in sec case no event fire, still browse dialog quit, leaving app in state of still waiting upload. deal this, added button ui fire event , phone call file.cancel(); file = null manually.

unfortunately, doesn't work expected. when seek open browse dialog again, error error #2041: 1 file browsing session may performed @ time. cancel ignored.

does have thought how workaround problem?

p.s. tested on air 13 , android 4.1 / android 4.3

android flex mobile air

No comments:

Post a Comment