I want to store my Bitmap image into project directory. How can I have access to my project folder or what is the address of my project folder?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to put the images in the
res/drawablefolder. Then, you can access them by using:R.drawable.name_of_image(forname_of_image.pngorname_of_image.jpg).If you want to access them by their original name, you better save them in the
assetsfolder. Then, you can access them by using theAssetManager:If you want to save a programatically created image, you can do:
You can’t save it to your project directory. I recommend you to read the documentation about how android packages work, because it seems you don’t understand.