dis = ic.openDataInputStream();
ByteVector vc = new ByteVector();
for( int b = dis.read(); b != -1; b = dis.read() ) {
vc.addElement( (byte) b );
}
// An application could have multiple entry points and each entry point has its own icon.
// We need to update icons for all entry points to be the same one.
Bitmap image = Bitmap.createBitmapFromBytes( vc.getArray(), 0, vc.size(), 1 );