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. Increase Old Keystore Validity

I have an app in the market, signed with a keystore which is valid
only until March 2011.
I need to upload an update to the app, Android market is not allowing
me to update unless my validity is until 2023.

How do I increase the validity of my keystore
OR
How do I obtain the old private and public keys and create a new
Keystore file?

Thanks,
Avinash

-- 

2. ADT Level editor additional device configurations

By default, the ADT Level Editor lets you design a layout for ADP1,
ADP2 and Nexus One but has anyone created a list with more device
configurations?

I'm referring to the devices.xml which looks like this...
<d:device name="Nexus One"><d:default><d:xdpi>254.0</
d:xdpi><d:ydpi>254.0</d:ydpi></d:default><d:config
name="Portrait"><d:screen-size>normal</d:screen-size><d:screen-
ratio>long</d:screen-ratio><d:screen-orientation>port</d:screen-
orientation><d:pixel-density>hdpi</d:pixel-density><d:touch-
type>finger</d:touch-type><d:keyboard-state>keyssoft</d:keyboard-
state><d:text-input-method>nokeys</d:text-input-method><d:nav-
method>trackball</d:nav-method><d:screen-dimension><d:size>800</
d:size><d:size>480</d:size></d:screen-dimension></d:config></d:device>

It's good that we can quickly preview how the layout might look on
those 3 devices but it would be better if there was a wider
selection.  So I'm wondering if anybody has added more device
configurations.   Perhaps we could compile a huge devices.xml
containing all of the devices out there.

-- 

3. Help with Live Wallpaper Settings

4. Use of Service class

5. using usb to PC with Internet sharing (opposite of tethering) ??

6. Layout question.

7. live singleton after ending activity