cupcake 1.5 r1 surfaceCreated is not called!!!

by Jon Colverson » Wed, 29 Apr 2009 05:41:23 GMT


Sponsored Links
 


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

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



cupcake 1.5 r1 surfaceCreated is not called!!!

by ad » Wed, 29 Apr 2009 18:07:15 GMT


 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






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


Sponsored Links


cupcake 1.5 r1 surfaceCreated is not called!!!

by jeanguy » Thu, 30 Apr 2009 00:27:48 GMT


 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 not have the
sensor service?  Unlimited wait (unacceptable, really), return null,
or something else?

Thanks...





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



Other Threads

1. Intent Service not actually spawning a new thread

My IntentService is blocking my UI thread and I wanted to find out
why. So I turned on profiling in the onStartCommand method of the
IntentService and turned it off at the end of the onStartMethod. The
working being done in between is web access with the Apache HTTP
client.

According to the profiler, the onStartCommand method of the
IntentService is running on the main thread, not in a worker thread.
Any idea what could cause this behavior?

-- 

2. how to create colored multicolumn listview

hi,

do I use the imageview as the skin of the colored listview or is there
better ways to create them?

thanks.

bryan

-- 

3. License Verification Library: getting error NOT_MARKET_MANAGED

4. Failed to open /dev/msm_pcm_out for writing!

5. Find the location in Android Map

6. Uploading file through HTTP Post

7. about video capture!!!