Retrieve bitmap from uri

前端 未结 7 1723
终归单人心
终归单人心 2021-01-01 17:06

I have included \'share via myApp\' option. I inserted following code in the receiving activity class.

    // Get the intent that started this activity
    I         


        
7条回答
  •  梦毁少年i
    2021-01-01 17:52

    For getting bitmap from uri,

    Bitmap  mBitmap = Media.getBitmap(this.getContentResolver(), uri);
    

    Hope this helps you.

提交回复
热议问题