I develop an android module and need it to get the image in the Directory:Resource/images,but it could not get the image until now... here is the code to use the method which get images in the module:
WT.sendImage('images/appicon.png');
and this is the method code in the module:
public void sendImage(String path) {Bitmap bmp = BitmapFactory.decodeFile(path); //do sth to the bmpI always get "bitmap decode failed" here. Is there anything wrong in the directory? It works well with 'images/appicon.png' in IOS. I don't know why? Could some guys give me advice? Thx a lot.
1 Answer
Try this
Bitmap bmp = BitmapFactory.decodeFile(path) return TiBlob.blobFromImage(bmp)and return type of sendImage mothod TiBlob
Your Answer
This question has been locked and cannot accept new answers.