cupcake 1.5 r1 surfaceCreated is not called!!!

by ad » Tue, 28 Apr 2009 19:58:30 GMT


Sponsored Links
 I've created game,
everything works fine on all previous android versions except current
cupcake 1.5.
It works even on cupcake pre release.I'm using exact the same
build.xml, sources and resources.
The problem is that surfaceCreated is not called :
                SurfaceHolder mSurfaceHolder = getHolder();
                mSurfaceHolder.addCallback(this);
                setFocusable(true);

                waitForScreen(); - here I untill surfaceCreated change variable 
that
it's ready,but it's never called.
I just can explain that I'm running SurfaceView activity after
stopping regular View activity (for the game menu - it was easier to
create it).

 Please help me if you can figure out something. I'm just a developer
not a Android engine tester. If they are putting such stuff to the
market they should test it a little bit (not talking about discovered
VM crashes instead of exceptions).

AA


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Point of Contact

Hi all,

Not all the developers are backed by rich funding. So for developers
with limited or no funding, is there anyway to loan a unit for
development from Google directly? Is there any direct contact at
Google such developers can reach?

-- 

2. Passing a LinearLayout from one Activity to another

For a rather crazy reason I am trying to pass a linearLayout from one
activity to another.
Should I use an intent extra for this?
What would be the right way to create a LinearLayout in one activity and
then spawn a new activity using that linearLayout?

Thanks for ur help

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Great spirits have always found {*filter*} opposition from mediocrities. The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his intelligence.
... Albert Einstein.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Aniruddh Bajirao
 http://www.***.com/ 

-- 

3. How to Custom Tab style

4. Paging alta

5. ActivityNotFoundException

6. Soft Keyboard Shrinks Dialog Buttons

7. microSD yg di Partisi/Swap