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

  • Home
  • SEARCH
  • 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 8297627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:28:59+00:00 2026-06-08T15:28:59+00:00

I am starting to use AndEngine and trying to load a texture to make

  • 0

I am starting to use AndEngine and trying to load a texture to make a sprite in a screen.
In my activity class I have

public EngineOptions onCreateEngineOptions() {

     DisplayMetrics dm = new DisplayMetrics();
     getWindowManager().getDefaultDisplay().getMetrics(dm);

     CAMERA_WIDTH = dm.widthPixels;
     CAMERA_HEIGHT =  dm.heightPixels;

     float screenResolutionRatio = ((float)CAMERA_WIDTH/(float)CAMERA_HEIGHT);

    this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
    final EngineOptions options = new EngineOptions(true,
                                                    ScreenOrientation.PORTRAIT_FIXED, 
                                                    new RatioResolutionPolicy(screenResolutionRatio),
                                                    this.mCamera);
        return options;
    }


public void onCreateResources(OnCreateResourcesCallback arg0)
            throws Exception {
      mTextures = new NTTextures(this);     

    }

NTTexture is a class where textures are loaded.

Here is the meaningfull part of the code:

public NTTextures(final BaseGameActivity activity) {
    try
    {
        BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
          this.spritesheetTexturePack = new TexturePackLoader(activity.getAssets(), activity.getTextureManager()).loadFromAsset("gfx/baseAtlas.xml", "gfx/");
        this.mSpritesheetTexture = spritesheetTexturePack.getTexture();
        this.mSpritesheetTexturePackTextureRegionLibrary = spritesheetTexturePack.getTexturePackTextureRegionLibrary();
        this.ping= this.mSpritesheetTexturePackTextureRegionLibrary.get(baseAtlas.PING_ID);

       activity.getEngine().getTextureManager().loadTexture(this.mSpritesheetTexture);


    } catch (final TexturePackParseException e) {
            Log.e("Error", String.valueOf(e));
        }

      }

So, then all this done, I have an error log like and a crash.

07-25 18:44:23.880: D/AndEngine(32659): NTGameActivity.onCreate @(Thread: 'main')
07-25 18:44:23.930: W/dalvikvm(32659): VFY: unable to resolve static method 391: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
07-25 18:44:24.100: D/AndEngine(32659): NTGameActivity.onResume @(Thread: 'main')
07-25 18:44:24.290: D/AndEngine(32659): VERSION: OpenGL ES 2.0 1309647
07-25 18:44:24.290: D/AndEngine(32659): RENDERER: Adreno 200
07-25 18:44:24.290: D/AndEngine(32659): EGLCONFIG: EGLConfig(Red=5, Green=6, Blue=5, Alpha=0, Depth=0, Stencil=0)
07-25 18:44:24.290: D/AndEngine(32659): EXTENSIONS: GL_AMD_compressed_3DC_texture GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_NV_fence GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_QCOM_memory_monitor 
07-25 18:44:24.290: D/AndEngine(32659): MAX_VERTEX_ATTRIBS: 16
07-25 18:44:24.290: D/AndEngine(32659): MAX_VERTEX_UNIFORM_VECTORS: 251
07-25 18:44:24.290: D/AndEngine(32659): MAX_FRAGMENT_UNIFORM_VECTORS: 222
07-25 18:44:24.300: D/AndEngine(32659): MAX_TEXTURE_IMAGE_UNITS: 16
07-25 18:44:24.300: D/AndEngine(32659): MAX_TEXTURE_SIZE: 4096
07-25 18:44:24.300: D/AndEngine(32659): NTGameActivity.onSurfaceCreated @(Thread: 'GLThread 9')
07-25 18:44:24.300: D/AndEngine(32659): NTGameActivity.onCreateGame @(Thread: 'GLThread 9')
07-25 18:44:24.310: D/AndEngine(32659): NTGameActivity.onCreateResources @(Thread: 'GLThread 9')
07-25 18:44:30.310: I/global(32659): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
07-25 18:44:30.420: D/AndEngine(32659): NTGameActivity.onSurfaceChanged(Width=320,  Height=480) @(Thread: 'GLThread 9')
07-25 18:44:31.000: W/dalvikvm(32659): VFY: unable to resolve static method 353: Landroid/opengl/GLES20;.glDrawElements (IIII)V
07-25 18:44:31.000: W/dalvikvm(32659): VFY: unable to resolve static method 391: Landroid/opengl/GLES20;.glVertexAttribPointer (IIIZII)V
07-25 18:44:31.030: W/dalvikvm(32659): Exception Lorg/andengine/util/exception/AndEngineRuntimeException; thrown during Lorg/andengine/opengl/GLES20Fix;.<clinit>

I use for tests LG Optimus One with Android 2.2, so I supposed that my device has no needed GLES lib. Is that the reason of the errors or I have bugs in my code? Also, are there any list of supported devices for AndEngine?

Addition:
I checked tested phone specs – it has Adreno 200 with OpenGLES 2.0 support. So, it must have needed libs, but it doesn’t. Any suggestions?

  • 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-06-08T15:29:00+00:00Added an answer on June 8, 2026 at 3:29 pm

    You can try this method: AndEngine.isDeviceSupported()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am starting to use MySQL with JDBC. Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql:///x, x, x);
starting use oop why: class user { private $pdo; function __construct() { $this->pdo =
I am just starting to use UML and have came to the following question:
­I'm starting to use AndEngine in my app. I've used an xml to define
im starting to use Backbone.js and im trying to do somthing simple with javascript,
Just starting to use Ruby on Rails to see what its like. I have
I´m starting to use jenkins and I have problems with the authentication when I
I'm starting to use Apache buildr. As far as I understand, I always have
I am just starting to use RabbitMQ and AMQP in general. I have a
I'm just starting to use Xcode 4, and I'm trying to find the file

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.