1.5 Example GLSurfaceViewActivity.java fails after stop/resume

by SChaser » Sun, 13 Sep 2009 06:09:45 GMT


Sponsored Links
 I am having trouble with the example for use of GLSurfaceView (see
 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurfaceViewActivity.html 
).

I created a normal Android project in the Eclipse IDE, added the
GLSurfaceViewActivity class and related from the sample directory, set
the activity to GLSurfaceViewActivity, and ran it on the emulator.

It worked. Then I hit the home button, launched another app, hit home
again, and launched my test app again. This time, I got a blank screen
(with now exceptions thrown in logcat);.

Any ideas?

I was motivated to try this example because if have been having the
same trouble with my own app - discussed
iat



1.5 Example GLSurfaceViewActivity.java fails after stop/resume

by SChaser » Sun, 13 Sep 2009 06:24:59 GMT


 I take it back! Now it works (but my app doesn't - it has a big
difference - see the discussion at


Sponsored Links


Other Threads

1. Posisi menentukan prestasi?

Tanpa bermaksud merendahkan atau mengunggulkan satu brand atau satu ops, kenapa 
bisa beda yah?

Ada penjelasan teknis? Atau memang perangkat kerasnya yg berpengaruh? 
 

XL unlimited 150rb/bln FUP 1gb semua
Lokasi ; pondok Gede 



Regards
Dzikki

2. Effectively using MediaPlayer and saving resources...

I'm writing a program for my toddler and I'm running into a problem.

I call mediaplayer numerous times.  Each time a button is clicked it
runs media player, but it's a different sound.  So should I create a
new instance each time?

Here's what I'm looking at...



                                if(buttonClicked == button1)
                                {
                                    MediaPlayer mp = 
MediaPlayer.create(getBaseContext(),
R.raw.sound0);
                                    mp.start();
                                    mp.release();
                                }
                                else if(buttonClicked == button2)
                                {
                                    MediaPlayer mp = 
MediaPlayer.create(getBaseContext(),
R.raw.sound1);
                                    mp.start();
                                    mp.release();
                                }


Now that seems to work fine on the emulator.  When I pack it up into
an APK and put it on my G1 I can only do it 7 times before it force
closes.  I BELIEVE the memory gets full or something.

3. Using permissions

4. onSignalStrengthChanged and battery life?

5. Webview shouldOverrideUrlLoading not called for https

6. Fw: [kassmadji01] Fw: [Konsultasi-Kesehatan] Pijat Ala Chandra

7. Mobile App Socialization - We Need an API