Author name: sohailaziz

IntentService: Providing data back to Activity #android

Read Time 2 minutesIt is advisable to use thread/asynTask or Service to handle long running task such as file I/O, internet access etc. IntentService is simple, easy to use and take care of many hectic tasks for You.Read more about IntentService atdeveloper.android . A simple use case of the topic can be: Your activity send a web request …

IntentService: Providing data back to Activity #android Read More »

Custom adapter for ListView #android beginners

Read Time 2 minutesPRE:You must be familiar with simple list view/spinner and simpleAdapter. By default listView only accepts a simple adapter with array of strings. However listView control be customized as you wish. Take a look of various listView use cases The world of listView Google I/O. We can add custom controls like TextViews, buttons, images etc and make them …

Custom adapter for ListView #android beginners Read More »

Intent filters for #android beginners

Read Time < 1 minuteMuch have been written and discussed about Intent filters and their types (explicit and implicit). I am just going to discuss their usage in basic/simple android applications. You don’t need to define any intent-filter (other that the launcher activity) if your application doesn’t call external intents e.g reading contacts, and you are not intended to receive …

Intent filters for #android beginners Read More »

Passing custom objects between android activities

Read Time < 1 minutePassing primitive datatypes between activities is straight froward, you can use intent.putExtra() and put anything like boolean,strings and integers etc. However you can’t pass custom objects  between activities in this way.To pass custom objects between activities/services, we  must implement  parcelable or serializable interface to custom class. However parcelable is specifically designed for android and is …

Passing custom objects between android activities Read More »