使用putExtra传递图像

时间:2018-04-15 20:41:07

标签: java image firebase firebase-realtime-database firebase-storage

我的应用从Firebase数据库获取数据,然后我将其用于CardView,点击后,它会打开一个新活动并将图像用于新活动。

我使用putExtra将卡数据移动到新活动。 但是,使用putExtra移动图像时遇到一个小问题。 我已经在互联网上查了一下,发现我可以通过使用Bitmap做到这一点 -

Bitmap tileImage = BitmapFactory.decodeResource(getResources(), R.drawable.imageName);

这里的问题是我的图片存储在Firebase上,我使用Recyclerview的Cardview上的图片..如何从该位置使用该图片?

感谢您的帮助。

0 个答案:

没有答案