December 30, 2010

Pre-Threaded Android and iOS Apps now in QC 1.6.5

Posted in Android Development, iPhone development tagged , , , , , , , at 6:56 am by tetontech

All User Interface libraries, regardless of platform, require that the UI components start their updates from the ‘main’ thread.  Sometimes this is referred to as the UI thread but it is actually the main thread of the application.

What most people that are creating mobile apps don’t realize is that if they are using the main thread to do significant computation such as remote server access, XML parsing, database access, number crunching, etc. is that this makes their User Interface slow and chunky.  The ywill notice the unresponsiveness of their UI but will not know why it isn’t smooth.  They generally tend to come to believe that the problem is that the processors are not fast enough to do what they want to do.  This is generally not the case.

What they really need to do is move the computational portions of their apps into background (worker) threads and let the UI thread remain responsive to the user.  This can be a challenge that they are unwilling to attempt due to the perceived difficulty of implementing threading.

Starting with QuickConnect 1.6.5 I have made the native iOS and Android application templates pre-threaded for both iOS and Android apps.  This means that you, as a developer, no longer need to worry about creating the background threads and then executing UI updates on the main thread for your mobile apps.

When you use one of the mobile native templates in QC all of your validation and computation code is automatically executed on a background thread.  When this portion of your application is complete and you make a UI update the framework automatically causes your update to use the main thread.  You won’t even be aware of the change.

All of this is triggered every time you use the QC framework handleRequest method.  This is in addition to linearizing your asynchronous HTTP remote access calls and an easy to use SQLite wrapper.  With this kind of a head start it becomes much easier for you to create highly responsive, high quality apps in a much shorter time.

I will soon be making this multi-threading available to all of you using the hybrid iOS and Android templates as well.  It should make a huge difference in your execution speeds.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: