Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7586149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:21:15+00:00 2026-05-30T19:21:15+00:00

I am developing openGL live wallpaper using Robert Green GLWallpaperService jar file. there is

  • 0

I am developing openGL live wallpaper using Robert Green GLWallpaperService jar file.
there is an exception come after running the code no wallpaper do ant draw task on
Screen—-

02-16 11:09:31.941: E/AndroidRuntime(6286): FATAL EXCEPTION: GLThread 9
02-16 11:09:31.941: E/AndroidRuntime(6286): java.lang.NullPointerException
02-16 11:09:31.941: E/AndroidRuntime(6286): at com.inoxmobile.waterlwp.WaterLiveWallpaperRenderer.onDrawFrame(WaterLiveWallpaperRenderer.java:152)
02-16 11:09:31.941: E/AndroidRuntime(6286): at    
com.inoxmobile.waterlwp.GLThread.guardedRun(GLWallpaperService.java:683)    
02-16 11:09:31.941: E/AndroidRuntime(6286):at com.inoxmobile.waterlwp.GLThread.run(GLWallpaperService.java:541)

I am using this code for that—–

public void onDrawFrame(GL10 gl)
  {

    if (gl == null)
        return;

    gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);    

    gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
    gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
    gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);

    if (usebg) {
        gl.glDepthMask(false);
        mBackground.draw(gl);//Exception come Here..........
        gl.glDepthMask(true);
    }

    gl.glMatrixMode(GL10.GL_MODELVIEW);
    gl.glLoadIdentity();    

    //if (usebg){
        //mBackground.Init(gl);
        //mBackground.setDims(mWidth, mHeight);
    //}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:21:16+00:00Added an answer on May 30, 2026 at 7:21 pm

    Are you certain you have initialized mBackground in onCreate() or the constructor of this class? Remember, if you only have a member declaration,

    private Background mBackground; 
    

    this is equivalent to

    private Background mBackground = null;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am work my game on android, using OpenGL developing 2D game, running on
I'm using Visual Studio 2008, Developing an OpenGL window. I've created several classes for
At present we are developing a graphic app on a linux box using opengl.
i am developing one app using opengl surface view ,how can implemented please forward
I am developing an interface for an OpenGL Simulation on the Mac using Interface
I am developing a CAD application using Delphi2010 and OpenGL. Currently, i am working
I'm developing a live wallpaper app which will draw an analog clock. So far
I am developing an iPhone game using OpenGL ES. I want to move the
I am developing a paint application using OpenGL. I am using CUSTOM UIView for
I've newly learnt OpenGL and I am developing a Game using OpenGL. I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.