It\'s the simple code and instead of getting result to set the Bitmap, I get null. Can anyone tell me where I am making a mistake?
String test = \"test\"; by
Because the bytes in "test".getBytes() doesn't represent a valid bitmap.
"test".getBytes()
You need to create a byte-array which actually contains an encoded bitmap, not just some "random bytes" corresponding to the representation of a string.