i am new to titanium development,i am selecting an image from gallery after selecting image i need to open the another window.but after click the choose it will taking time to open the next screen.
User will confusing after choose previous window displaying then new screen will coming please help me how to resolve.
below is my code :
Titanium.Media.openPhotoGallery({
success:function(event){
Ti.API.info(' in openPhotoGallery success ');
var imageBase64String=Ti.Utils.base64encode(event.media).toString();
var args={base64String : imageBase64String };
Alloy.createController('customerTagPost', args).getView().open();
},
cancel:function(){
// user cancelled the action fron within
// the photo gallery
},
allowEditing:true,
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]
});