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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:10:10+00:00 2026-05-25T23:10:10+00:00

I have a simple test app i am working on. This will be later

  • 0

I have a simple test app i am working on. This will be later imported into a larger application but i want to get it working first before i merge it with the actual application. It has 3 linearlayouts. The first one is the mainLayout and the other two are child1 and child2 of the mailLayout. In child open i place a GLSurfaceview and child2 i place a text view.

The glSurfaceView has a custom renderer that takes an 2d image and draws in on the screen for 7 seconds (streching it a little bit every onDrawFrame). After the 7 seconds the next image is to be loaded by the same Renderer and shown on screen. this repeats infinitely.

I have the first image showing properly. After the first seven seconds i remove child1 and child2 from the mainlayout. Then i load the second image and create the texture. Then i add the child1 and child2 back.

The problem i see is that nothing is being rendered on the screen. Also the none of the Renderers methods (onDrawFrame, onSurfaceChanged, or onSurfaceCreated) are being called.

If i dont remove child1 and child2 from the mainlayout the second image shows properly. The reason i need to remove all child from mainlayout is that in the real application there might be over overlaying layout/view that the user might have dragged onto the screen. They need to be removed before the next image.

What am i doing wrong here? Thanks for your help.

  • 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-25T23:10:11+00:00Added an answer on May 25, 2026 at 11:10 pm

    So I found out that the GLSurfaceView was getting destroyed when I was removing it from the screen. I put a onDestroyListener on the glSurfaceView and noted it in a local boolean, isGLDestroyed. Next time before adding it to the screen I recreated the GlSurfaceView.

    Let me know if this is not the most efficient way to solve the issue.

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

Sidebar

Related Questions

I have a simple test application (C# console application) that does an HTTP GET
I'm just trying to get a simple test app working with AlarmManager. public class
I have a simple little test app written in Flex 3 (MXML and some
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I have made a simple test application for the issue, two winforms each containing
working with Flex4 AIR app, using this component I get data from the barcode
I am working on a simple console app to get my feet wet with
Deploying on JBoss AS 7.1.0.Final. I have a very simple test app. It was
I have a simple test bash script which looks like that: #!/bin/bash cmd=rsync -rv

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.