Thanks for quick response, The problem was somewhere else: m_sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
it hangs,so the next line wasn't called setContentView(gameView); Sorry for the not being precise, but I don't know why getSystemService (SENSOR_SERVICE) causes the problem now? Is it depreciated? I would like to know how to make it now compatible to all versions. AA On Apr 28, 11:41 pm, Jon Colverson <[email protected]> wrote: > On Apr 28, 12:56 pm, ad <[email protected]> wrote: > > > 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. > > surfaceCreated() is getting called for me in the 1.5r1 emulator. Can > you give a bit more detail about what you're doing? Does waitForScreen > () spawn another thread and return? > > -- > Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

