Store Image Files

Problems with Canvas, OpenGL, etc...

Store Image Files

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

Hey,

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
Fahrenheit
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Mar 13, 2011 8:19 pm

Top

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,
http://sudarmuthu.com/blog/the-structure-of-an-android-project

In order to get the idea about, how to read the images from the res folder, please go through this link,
http://www.41post.com/2744/programming/android-loading-images-from-a-remote-sever-sd-card-and-from-the-resources-folder
Thanks with Regards,
Raj - The Kernel
raj_J2ME
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
http://developer.android.com/guide/topi ... orage.html

Also try this one
http://www.developer.com/ws/other/artic ... ndroid.htm

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

Top

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

Who is online

Users browsing this forum: No registered users and 4 guests