Multi-platform mobile app development: The need of an hour for developers
Multi-platform mobile app development is worth bothersome. In contrast to this, it is also well-known fact that each mobile app development platform bequeaths unique and ultimate features, behavior as well as capabilities. However, the latest and very popular thing is the multi-platform apps, so being a developer; you have to discover the various solutions in order to craft the best and outstanding cross-formatted apps without making all the resources void for developing the very few platforms at a time.
Smartphones are getting more versatile and amazing as each day goes by, but with the increase in their capabilities also came an increase in the amount of energy that they need to operate.
Seeing how battery size is quite limited if you want to have a reasonably small phone, most people have simply accepted the fact that they need to recharge their phone every two days, but if you are tired of this routine, there are a number of things that you can do in order to make sure that you get some extra juice out of your battery.
Some of these solutions will only work on older Android phones, as they have already been addressed in newer ones, but some will be able to benefit you regardless of the age of your device and the version of Android that it is running.
I believe you folks got hands on experience in using AQuery library from my previous posts, if not take a look at below posts to know how easy it is to write Android code with AQuery library.
It’s time to explore the other most wonderful feature of AQuery and that is ‘Image loading’. In this post we will be developing simple application to demonstrate how to load Images from Network using AQuery library by putting few lines of code.
I believe you folks got to know how easy it is to write Android code when AQuery library is used from my previous posts.
It’s time to explore the other most wonderful feature of AQuery and that is ‘Asynchronous Network Calls’. In this post we will be developing simple application to demonstrate how to download Mp3 file from Internet and play it as soon as it is downloaded. I already wrote a separate article [Android AsyncTask Example] on how to make Asynchronous calls to download file from Network but AsyncTask was used rather than AQuery library to perform Asynchronous download.
In this post we will be creating simple Android application using AQuery library to demonstrate how easy it is to write Android code with AQuery library.
Are you new to AQuery library? then take a look at Introduction to AQuery – Android Query which will be helpful for you to understand lot about it.
I picked the Button Listener – Make the cat start Meowing application (which plays ‘Meow’ sound when user clicks/taps on the screen) to illustrate how the application can also be created using AQuery library with minimal number of lines.
You must first understand how to handle button click event using AQuery library before we start creating application.
Here is the code snippet written using the library which sets button’s text as ‘Hello World’ when it is clicked:
Welcome back readers 🙂
It’s enough discussing about creating simple android applications, let us also look into some useful libraries that are available for Android.
In this post, I will just walk you through the Introduction to AQuery and I will also be discussing the features of AQuery.
In this post, we are going to discuss about the usage of AsyncTask in Android applications with simple example. I have created simple example to demonstrate how AsyncTask can be used in Android applications.
Take a look at AsyncTask tutorial which will be helpful for you to understand the example with much ease.
Android UI Main Thread
Android handles input events/tasks with a single User Interface (UI) thread and the thread is called Main thread. Main thread cannot handle concurrent operations as it handles only one event/operation at a time.
Concurrent Processing in Android
If input events or tasks are not handled concurrently, whole code of an Android application runs in the main thread and each line of code is executed one after each other.
Assume if you perform a long lasting operation, for example accessing resource (like MP3, JSON, Image) from the Internet, the application goes hung state until the corresponding operation is finished.
To bring good user experience in Android applications, all potentially slow running operations or tasks in an Android application should be made to run asynchronously.