java - The method decodeByteArray(byte[], int, int) in the type BitmapFactory is not applicable for the arguments (byte[][], int, int) -


i put in asynctask got error.

the method decodebytearray(byte[], int, int) in type bitmapfactory not applicable arguments (byte[][], int, int)

private class saveimagetask extends asynctask<byte[], void, void>{      @override     protected void doinbackground(byte[]... params) {         // todo auto-generated method stub         bitmap bitmappicture = bitmapfactory.decodebytearray(params, 0,params.length);          return null;     }       }  } 

i think need:

bitmap bitmappicture = bitmapfactory.decodebytearray(params[0], 0,params[0].length);

params array , therefore need specify index.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -