Switching between GLSurfaceView and View + home button


Last Updated:

  1. barbucha

    barbucha New Member This Topic's Starter

    Joined:
    Oct 12, 2010
    Messages:
    1
    Likes Received:
    0
    Hi folks,

    i have this problem. In my app I have one activity which switches between GLSurfaceView and normal View. To do this I use ViewFlipper. Everything works as expected. But problem is when i touch the home button and then resume the activity. When I touch home button with displayed GLSurface view, the resume to the activity goes fine, it is quick. But, when I switch to normal view and touch the home button, the resume takes about 2-3 seconds. I noticed, that this problem occurs only on Android 2.2, both emulator and device. On android 2.1 everything is ok, resume to activity with displayed normal view is fast.

    I cant't find anything in log. Also I tried to call onPause and onResume on GLSurfaceView when switching between views and in activities onResume call onResume on GlSurfaceView only if it is displayed, but didn't helped.

    Can anyone help please? Am i missing something to do...?
     

    Advertisement
  2. NehaK18

    NehaK18 New Member

    Joined:
    Nov 15, 2016
    Messages:
    1
    Likes Received:
    0
    Hi, Did you find any solution for this? I am also getting same issue.
     

Share This Page

Loading...