Here is the out put from logcat. The error happens when I call
resources=this.getResources();

04-03 16:48:33.422: ERROR/AndroidRuntime(290): FATAL EXCEPTION: main
04-03 16:48:33.422: ERROR/AndroidRuntime(290):
java.lang.RuntimeException: Unable to instantiate service
net.markguerra.android.glwallpaperexample.MyWallpaperService:
java.lang.NullPointerException
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2943)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.app.ActivityThread.access$3300(ActivityThread.java:125)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.os.Looper.loop(Looper.java:123)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
dalvik.system.NativeStart.main(Native Method)
04-03 16:48:33.422: ERROR/AndroidRuntime(290): Caused by:
java.lang.NullPointerException
04-03 16:48:33.422: ERROR/AndroidRuntime(290):     at
android.content.ContextWrapper.getResources(ContextWrapper.java:80)
04-03 16:53:38.932: ERROR/AndroidRuntime(421):     at
net.markguerra.android.glwallpaperexample.MyWallpaperService.<init>(MyWallpaperService.java:
26)
04-03 16:53:38.932: ERROR/AndroidRuntime(421):     at
java.lang.Class.newInstanceImpl(Native Method)
04-03 16:53:38.932: ERROR/AndroidRuntime(421):     at
java.lang.Class.newInstance(Class.java:1429)
04-03 16:53:38.932: ERROR/AndroidRuntime(421):     at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2940)



On Apr 2, 5:14 pm, Marcin Orlowski <webnet.andr...@gmail.com> wrote:
> On 2 April 2011 16:12, MobileVisuals <eyv...@astralvisuals.com> wrote:
>
> My problem  is that I can’t load my texture resources. The app crashes
>
>
>
> And the log quote is...?
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
> WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
> *Twitter<http://webnetmobile.com/twitter/>
> *

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to