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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -