Android Volley is the new way to make network requests. It has a lot of advantages : configurable thread pool, request priority, caching, request cancel. AsyncTask is no more needed and this is a good new as AsyncTask is known for its memory leak issues. In this quick step tutorial, i show the piece of source code to make it work with google gson library.
A few days ago, i wrote a tutorial about creating a sliding menu using the SlidingMenu library. Since, Google has introduced the NavigationDrawer in the android support library. This tutorial shows you how to use it.
This article shows you how to code properly an asynctask inside a fragment. This is an update of the article Android : AsyncTask – Best pratices that shows you how to code an asynctask with an activity. With a fragment, it is much simplier because you don’t have to manage rotation as the fragment can be set to retainInstance and survive on configuration changes (rotation).
This android tutorial teaches you how to add a sliding menu inside your application. It is a two part tutorial. The first part is about installing the SlidingMenu library and creating an empty sliding menu. The second part will explain how to fill the sliding menu with sections and menu items. You can watch the video below to see the result.
This android tutorial is about adding a refresh item in the action bar. When refreshing is disabled, a simple image is shown. When refreshing is running, a circular progressbar is shown. Let’s see the screenshots below to show the results.
AsyncTask in Android allows you to execute some code in background threads so that it does not block the user interface. They are mostly used to query webservices and to download data like pictures. But AsyncTask are not so easy to use if you want them to behave correctly, especially when a configuration change happens (like rotations). This article presents my conclusion of how to correctly use the AsyncTask. If you don’t know the basics about them, i invite you to read first the Android documentation.
Integrating Admob into your android application is quite easy, and this is what i am going to show you in this tutorial. Admob allows you to add advertizing banners in your app so you can make some money and become rich. Here’s some screenshots of the result :
In this android tutorial, i will show you how to highlight the selected item of a ListView, so that it keeps being highlighted. By default, the highlight disppears so in a list-detail page, you don’t see which item has been selected. Other people use a radio to do that, but i prefer to change the background color to lighten the UI. Let’s see a little demo: