简体   繁体   English

将图像从SD卡复制到Android应用程序的res / drawable文件夹中

[英]To copy an image from an sdcard into res/drawable folder of the Android app

I would like to know the possibility of copying an image from the sdcard in to the res/drawable folder of an Android application , these are very small Bitmaps located in an sdscard. 我想知道将sdcard中的图像复制到Android应用程序的res / drawable文件夹中的可能性,这些是位于sdscard中的很小的位图。

thanks in advance 提前致谢

Thank you for patiently answering my question , I am trying to locally store my bitmaps into the app local data location. 感谢您耐心回答我的问题,我正在尝试将位图本地存储到应用程序本地数据位置。

无法编辑res文件夹,因为必须在编译时将其填满才能让编译生成R.java文件。

无法通过语法将图像添加到drawable目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将图像从Drawable文件夹存储到Android中的SDCard? - How to Store Image from Drawable folder to SDCard in Android? Android:下载图片并将其放在res / drawable文件夹中 - Android: download image and put it in the res/drawable folder 将图像文件从res / drawable保存到android中的Gallery App - Saving an image file from res/drawable to Gallery App in android 如何将sdcard中的.txt文件复制到我的应用程序res / raw文件夹中 - How to copy a .txt file from sdcard to my app res/raw folder 如何将样本图像从drawable文件夹复制到sdcard文件夹,programmaticaly? - How to copy the sample images from the drawable folder to the sdcard folder, programmaticaly? 如何以编程方式将xml文件从res / Values文件夹复制到sdcard - How to copy xml file from res/Values folder programmatically to sdcard in android 将图像从 Android 上的可绘制资源保存到 sdcard - Save image to sdcard from drawable resource on Android Android:以编程方式将文件从sdcard复制到应用程序的资产文件夹 - Android: Copy file from sdcard to app's assets folder programmatically 如何在运行时从sdcard上的特定文件夹检索图像到android中的drawable文件夹? - How to retrieve image from particular folder on sdcard to drawable folder in android at runtime? android-如何将图像复制到sdcard中的文件夹 - android - how to copy the image to folder in sdcard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM