Retrieve bitmap from uri

前端 未结 7 1637
终归单人心
终归单人心 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条回答
  • 2021-01-01 17:52

    For getting bitmap from uri,

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

    Hope this helps you.

    0 讨论(0)
提交回复
热议问题