Intent filter: intent.getData() returns null

后端 未结 1 1671
温柔的废话
温柔的废话 2020-12-30 06:43

I\'m writing an image editor in Android. So far it has a single activity. From this activity, I can load an image using a menu option that calls the Gallery activity, and in

相关标签:
1条回答
  • 2020-12-30 07:09

    The Uri you want is in the bundle. I have tried below code and can get the Uri of the image such as content://media/external/images/media/1750

    Intent intent = getIntent();
    Bundle bundle = intent.getExtras();
    Uri uri = (Uri)bundle.get(Intent.EXTRA_STREAM);
    

    More information you can see the ACTION_SEND

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