Store Image Files

Problems with Canvas, OpenGL, etc...

Store Image Files

Postby Fahrenheit » Sun Mar 13, 2011 8:24 pm


I am currently programming an App using OpenGL to show 2D Graphics. I have my 4 sided poly and now started to load the texture. But there I came to one problem. Where to store my source image file for the texture and how to load it. (Not how to generate a texture with openGL but how to load the image itself).

PS: I am using Eclipse with the official Plugin for the Android SDK

Thanks in advance Fahrenheit
Once Poster
Once Poster
Posts: 1
Joined: Sun Mar 13, 2011 8:19 pm


Re: Store Image Files

Postby raj_J2ME » Mon Mar 14, 2011 12:21 pm

I think this link will give the idea for the requirement. Please check this link,

In order to get the idea about, how to read the images from the res folder, please go through this link,
Thanks with Regards,
Raj - The Kernel
Master Developer
Master Developer
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Store Image Files

Postby ruelblapid » Mon Mar 14, 2011 2:08 pm

Hi Fahrenheit,

Android provides several options for you to save persistent application data. The solution you choose depends on your specific needs, such as whether the data should be private to your application or accessible to other applications (and the user) and how much space your data requires.

Refer to this link ... orage.html

Also try this one ... ndroid.htm

Ruel B. Lapid
Senior Android Engineer
User avatar
Experienced Developer
Experienced Developer
Posts: 65
Joined: Mon Mar 14, 2011 2:37 am


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 2 guests