Saturday, April 2, 2011

[android-developers] Resources can't be loaded in a Open GL live wallpaper

I am trying to make a Open GL live wallpaper based on Robert Greens
GLWallpaperService:

http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpapers
:

My problem is that I can't load my texture resources. The app crashes
when I call
getApplicationContext(); getResources(); or getApplicationContext()

I have a working version of the 3D animation for the wallpaper. I can
load the texture resources in this project and it works like it
should.The resource structures is exactly the same in this project as
in the live wallpaper project, so it should work to load the textures
here also. Should I use some special way to load the texture
resources? I am now using the standard way:

BitmapFactory.decodeResource(resources, R.drawable.l11);

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate