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

Uncategorized

Intercepting Android network calls using Fiddler Web Proxy

Background Some time it is important to intercept and inspect network calls that are being made from your android device. Specially of you have made an android app want to debug the outgoing network calls. In a browser it is very simple , you simply right click and then inspect element. Network tab will give… Continue reading Intercepting Android network calls using Fiddler Web Proxy