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. images from images.google.com

Hi everybody!
I need to search web for images by keyword or phrase with
images.google.com and then to show some of the found images in my app.
So does that web site have any API for this? Or what are the ways for
solving this problem?
Thanks!

Andrew

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

2. images.google.com results in my app

Hi everybody!
There's an interesting problem: I need to search for images on web and
then show them in my application. I'm thinking of using
images.google.com. How can I get results from this image search?
I tried simply creating URL object with adress "http://
images.google.com/images?q=keyword", but got a 403 Forbidden error.
I also know AJAX search api, but don't have any idea of how to
implement this in my app because it is for using in websites!
So what would you advise to get search results from images.google.com?

Andrew

-- 

3. how to get application state

4. FS : HTC Tattoo BNIB

5. Mounting sdcard in Emulator

6. arraylist storage in sqlite

7. Will Android OS support East-Asian Languages?