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 8453921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:53:20+00:00 2026-06-10T11:53:20+00:00

I am running GLES2 using native activity in my android app. When a call

  • 0

I am running GLES2 using native activity in my android app. When a call ends, I return to my app but the screen remains blank. I check the task manager, and I see that the app is still running. Can someone point me if
1) I have to write code to save and restore my game and which calls I must override in java to do this
2) there is a more automated way of restoring my app without save/restore

Thanks,
Madan

  • 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-10T11:53:22+00:00Added an answer on June 10, 2026 at 11:53 am

    This is likely due to the fact that Android destroys the OpenGL Context after the application it sent to the background and doesn’t by default automatically restore it.

    There’s two options to resolve this – the easiest, if you’re targeting Honeycomb devices or higher, is to use setPreserveEGLContextOnPause on your GLSurfaceView (see here). The alternative, if you’re targeting a lower OS version is to restore everything manually. When the context is destroyed so is everything attached to it – shaders, textures, vertex and index buffers. You’ll need to recreate these at the correct time – during onSurfaceCreated. Refer to the Android documentation for more details.

    UPDATE – Example implementation from my engine for pre-HoneyComb devices is here. See the code wrapped within PIXELBOOST_GRAPHICS_HANDLE_CONTEXT_LOST. The bindings to call the recreation of the context are in an example project.

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

Sidebar

Related Questions

Running a gwtp-sample-basic-spring app in Eclipse, I see the welcome page, but after some
I have an Android app which uses a bit of OpenGL running on a
Running Puppet v2.7.14 on CEntOs 6 and also using Apache/Passenger instead of WEBrick. I
Running my finished Rails Tutorial app through Rails Best Practices got me a warning
Running Nh 3.2 using SQLite throws the following exception: ---> NHibernate.HibernateException: Could not create
Running my play framework small app I get the following exception: ... Caused by:
running: ruby 1.9.3p0 with Rails 3.2.1 Trying to use rspec but when I try
Running a Play! app with Scala. I'm doing a request where the response is
Running IIS 6 with a main website using .net 4. I have many sub
Running Linux (Ubuntu 11.10), the same regular expression works in JavaScript, but fails when

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.