How to transfer a bitmap from Titanium JavaScript into native Android-module? -
i've written native android module has setter-method bitmap. need transfer bitmap titanium javascript-code module. i've tried following that, 1 crashes app:
var testimageview = ti.ui.createimageview({ image: pathtoimage }); var theimage = testimageview.toblob(); // create object of module var imageview = pinchmodule.createpinchview(); // call setter-method of module imageview.setthebitmap(theimage); win.add(imageview); this output of error-logs:
[error][inputdispatcher( 62)] channel '406cdf38 loading image (server)' ~ consumer closed input channel or error occurred. events=0x8
[error][inputdispatcher( 62)] channel '406cdf38 loading image (server)' ~ channel unrecoverably broken , disposed!
[error][inputdispatcher( 62)] received spurious receive callback unknown input channel. fd=166, events=0x8
is there way transfer bitmap titanium native module? or doing wrong?
best regards, thomas
Comments
Post a Comment