How to use res folder instead sdcard

I have some files on sd card, but i want put them in apk file, to res/raw folder, how i should change string to use that folder?

f = new File("/sdcard/file.ext");


You can get the resource by the following code.

                .getIdentifier("ImageName", "drawable", "application package name"));

Need Your Help

sharedpreferences - getInt only when first button is clicked

android button onclick sharedpreferences

scenario during a ball game i click exit and return to the main menu and then exit out of the app, once I launch the app again I can click 'Continue" from the main menu and return to the game where...

As defined in mysql


Hello i have table which in this table some of the field are optional to be filled.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.