开发者

Loading imageview through Uri

I am putting uri path of my image in my intent from Activity A like this -

intent.putExtra("imageUri", imageFileUri.getPath());

Then i get that Uri in Activit开发者_如何学Cy B

Uri imageUri = Uri.parse(getIntent().getExtras().getString("imageUri"));

and then try to load this image in my activity but all i get is a black screen.

What am i doing wrong here?


for Uri.parse() to work you will have to have passed it as below

intent.putExtra("imageUri", imageFileUri.toString());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜