Is it possible to overwrite resource from your app?
If so, how can I get the path to pass to the OutputStream?
I tried something like:
FileOutputStream("/data/data/com.myapp.test/res/drawable/image.png");
but I get a file not found.
Thanks
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.
Resources cannot be overwritten. You could, however, check to see if you have an overloaded resource in a file within your application’s space and, if so, make use of that instead. This wouldn’t translate directly into layout.xml references though, you would need to manage this programatically, without using resource IDs.