For res/raw/blah:

        Resources resources = context.getResources();
        InputStream stream = resources.openRawResource(R.raw.blah);

http://developer.android.com/reference/android/content/res/Resources.html

For assets/blah:

        AssetManager assets = context.getAssets();
        InputStream stream = assets.open("blah");

http://developer.android.com/reference/android/content/res/AssetManager.html

-- Kostya

23.03.2011 22:56, kiros88 пишет:
So if i was programming it in when i need to acces that file where do
i get the assets folder

like if it was in res/

its usually like
R.drawable.icon

so what would itbe for assets

On Mar 23, 11:17 am, Kostya Vasilyev<[email protected]>  wrote:
23.03.2011 21:10, kiros88 пишет:

Actually okay So im trying to technically put a config file in the apk
package but im not really sure where to put it does anyone know where
to store a .con file like right now i was thinking drawable cuz its
the only place that doesnt give me a project error but i know its not
going to work there
You can put it under<project>/assets or<project>/res/raw.

--
Kostya Vasilyev --http://kmansoft.wordpress.com


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to