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?



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

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.



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?



Other Threads

1. Android Version Support

I have a number of apps, and so far I have supported all versions from
level 3, android 1.5.

For my latest app, I'm considering supporting only from 1.6, or
possibly 2.1, upwards.

What's the trend thesedays? Is it becoming usual, or acceptable, to
adopt this strategy?



Hi , i have the following php script, i want to pass parametrs from
android to script and execute it, can you help me?

$handle = mysql_connect('localhost','root','');
die('No database connection');

$query='INSERT INTO people (id,name) VALUES ("'.$_POST["id"].'" ,"'.
$_POST["name"].'" )';



3. Thanks for your five stars, Haypi Kingdom, top10 game at Apple App Store, has come to Android Market!

4. to use only a single frame layout for oading different-2 images from drawable folder

5. Motorola Cliq XT

6. bitmaps drawn not scrolling in custom view

7. getting : javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException