Adding a bitmap to the drawable resources

后端 未结 2 1636
野的像风
野的像风 2021-01-13 00:13

How can I add a Bitmap taken from the web (in the app i mean!) to the drawable resources? So i can access the Bitmap using R.drawable.bitmapN

2条回答
  •  旧巷少年郎
    2021-01-13 00:35

    You can't modify that folder once your app is installed. In that case, you must copy the bitmap to a file and access it from there. Take a look at this other question:

    Save bitmap to location

提交回复
热议问题