Saturday, April 16, 2011

QuickStartGuide - Everything is asynchronous

Another area that bada is similar to Symbian - and indeed any other modern smartphone platform - is the way that it deals with asynchronous requests. In bada, almost any request, whether waiting for a response to an HTTP request, retrieving location information or getting information from one of the built in sensors, is dealt with asynchronously. In Symbian C++, asynchronous requests are wrapped up in ActiveObjects and managed by the ActiveScheduler object, which invokes the RunL() method of the appropriate ActiveObject when a response is received to an asynchronous request. This provides a form of co-operative multi-tasking within a single application thread.
Read more »

No comments:

Post a Comment