About a year and a half back I evaluated a couple of search engine rank trackers and compiled a list of decent softwares (preferably web based) available. Today I feel like posting the list on this blog for reference purposes.
PubNub is a lovely SaaS platform that helps us build realtime applications very fast without coding our own backend infrastructure. In my Android application I had to code a small chat piece where multiple people could chat in groups (similar to WhatsApp groups). The idea of this article is to quickly show you how to install the PubNub Android SDK in your app and get started.
Checking whether the current thread is the UI/Main thread or some other background thread is very easy. Here’s the code for it:
There are times when you want to have a scrollable ViewGroup like a ViewPager or a ListView or a GridView inside another scrollable ViewGroup like a ScrollView. You could have various combinations like a ViewPager in a ListView, a ViewPager and a ListView inside a ScrollView (this is what I had to do in my Android app), etc. in your application.
On my journey of learning Android Development, I’ve realised that it is really important to understand the input handling especially how the entire touch events framework work. Wrapping your head around the entire propagation of touch events (including the gesture) is imperative else while coding you’ll find yourself stumped by the behaviour of different ViewGroups (or Views) when attaching touch listeners to them with the hope that your code works as expected when they actually won’t. It gets even tricker when you have ViewGroups like ViewPager or ListView (both scrollable) inside other scrollable ViewGroups like ScrollView.
You might be thinking showing up a View like TextView, ImageView, EditText, Button, etc. or a ViewGroup (wrapping other Views) itself like RelativeLayout or LinearLayout must be easy. It’s not. Not in Android atleast.