public static Asset createAssetFromBitmap(Bitmap bitmap){
  if (bitmap != null) {
    final ByteArrayOutputStream byteStream=new ByteArrayOutputStream();
    bitmap.compress(Bitmap.CompressFormat.PNG,100,byteStream);
    return Asset.createFromBytes(byteStream.toByteArray());
  }
  return null;
}

public static Asset createAssetFromBitmap ( Bitmap bitmap ) { if ( bitmap != null ) { final ByteArrayOutputStream byteStream = new ByteArrayOutputStream ( ) ; bitmap . compress ( Bitmap . CompressFormat . PNG , 100 , byteStream ) ; return Asset . createFromBytes ( byteStream . toByteArray ( ) ) ; } return null ; }
create a wearable asset from a bitmap .
