Uncategorized

Using Handlers for async communication in Android

Background In one of the previous posts we say how Android OS shows ANR(App not responding) if UI threads is blocked for more than 5 seconds. And to overcome this we used Async Tasks. Using Async Tasks in Android In this post we will see how to use handlers which is another mechanism for asynchronous… Continue reading Using Handlers for async communication in Android

Uncategorized

Blinking text animation in Android

Background In last post we saw how to do a simple animation of bouncing ball. In this we will see how to make a text blink using ObjectAnimator. We will make text – “Hello World!” start and stop blinking using buttons. Creating the Layout ¬†Create layout file – blinking_text_layout.xml and add following content in it.… Continue reading Blinking text animation in Android

Uncategorized

How to add autocomplete to EditText in Android – AutoCompleteTextView

Background Everyone must have used EditText to allow use input some text. Ever wondered if such a basic functionality could support autocomplete? Of course it would, it is one of the basic use cases. We will see how to implement it in this post. AutoCompleteTextView AutoCompleteTextView is a direct subclass of EditText. We can use… Continue reading How to add autocomplete to EditText in Android – AutoCompleteTextView