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. Problems with NotificationManager

Hi,
In my app I use several different notifications, which require
different actions. By default the notification manager loads the main
activity, when users select a notification. How can I change that so
different notifications prompt different actions. I've been studying
the related APIs, however, could not find a way of detecting which
notification a user has selected. Any thoughts?
Thanks.
--~--~---------~--~----~------------~-------~--~----~

2. Problems with ksoap2 and BasicAuth

hi,

at the moment i have the following problem. I try to establish a
connect to a SOAP-service. Therefore i need basicauth via http. I use
ksoap2 and HttpTransportBasicAuth.
The problem is, I do not know how i can start a call when i use
HttpTransportBasicAuth becouse the function "call" is not available.


     private static final String SOAP_ACTION = "getVessels";
     private static final String METHOD_NAME = "getVessels";
     private static final String NAMESPACE = "http://xxx.com/";
     private static final String URL = "http://xxx.com/soap/
android.wsdl";

     void test() {
         try {
                HttpTransportBasicAuth(URL,"foo","bar");

             HttpTransportSE androidHttpTransport = new HttpTransportSE
(URL);
             androidHttpTransport.debug = true;

          SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
             request.addProperty("query", "aida");

             SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
             envelope.setOutputSoapObject(request);

                androidHttpTransport.call(SOAP_ACTION, envelope);


             Object result = envelope.getResponse();

             //handle result here

             //myExampleHandler.getResults();
         } catch (Exception e) {
             e.printStackTrace();
         }
     }



i hope someone can help me.

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

3. NetCounter v0.6

4. How do I get Current GPS Location?

5. SOAP with ksoap2: BasicAuth-Problems

6. How to Show One tab at a time on the screen.

7. Android developer Needed urgently