[android-developers] Re: cupcake 1.5 r1 surfaceCreated is not called!!!

2009-04-29 Thread ad
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

[android-developers] Re: cupcake 1.5 r1 surfaceCreated is not called!!!

2009-04-29 Thread jeanguy
I am experiencing the same issue as well. I am assuming this is the case because the emulator doesn't have a sensor service. However my understanding of the API is that the method call should return null if the service is not available. What should we expect to happen on real devices which do

[android-developers] Re: cupcake 1.5 r1 surfaceCreated is not called!!!

2009-04-28 Thread Jon Colverson
On Apr 28, 12:56 pm, ad avra...@gmail.com wrote: The problem is that surfaceCreated is not called :                 SurfaceHolder mSurfaceHolder = getHolder();                 mSurfaceHolder.addCallback(this);                 setFocusable(true);                 waitForScreen(); - here I