0
이미지 갤러리를 열 때 때로는 응용 프로그램이 충돌하고 때로는 그렇지 않습니다. Java 예외는 표시하지만 의미있는 메시지는 표시되지 않습니다.Appcelerator - Android 이미지 갤러리 galley
누구나 아이디어가 있습니까? 나 또한 의도를 사용했지만 작동하지 않습니다.
Thnxs! 여기
내 코드 샘플 : 내가 프로젝트에서 전환으로
Here a sample of my code:
function openGallery() {
var popoverView;
var arrowDirection;
if(Titanium.Platform.osname == 'ipad') {
// photogallery displays in a popover on the ipad and we
// want to make it relative to our image with a left arrow
arrowDirection = Ti.UI.iPad.POPOVER_ARROW_DIRECTION_LEFT;
popoverView = imageView;
}
var image = undefined;
Titanium.Media.openPhotoGallery({
success : function(event) {
var cropRect = event.cropRect;
image = event.media;
// set image view
Ti.API.debug('Our type was: ' + event.mediaType);
if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
addAttachment(image);
} else {
// is this necessary?
}
},
cancel : function() {
},
error : function(error) {
},
allowEditing : true,
saveToPhotoGallery : true,
popoverView : popoverView,
arrowDirection : arrowDirection,
mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]
});
}
일부 코드를 표시하십시오. –
죄송합니다. 방금 게시했습니다. – Jefiozie