I started to use ViewPagerIndicator for a few weeks. I found out each "page" inside ViewPagerIndicator is a Fragment. If that is a simple page, it will extend Fragment. If that is a list, please extend ListFragment
That is very complex, I suggest to read the document from Android.com. We have to fully understand the fragment concept!
I want to add a Google Play Style Action Bar into my AdvGen ToDoList
acction. That will improve user interactions. I know that is doable in Android 3.0+, but I still want to Android 2.x. I know Android Support v4 can bring Action Bar into Android 2.x. It makes the solution is doable, but that is not a out of box library. I found ViewPagerIndicator opensource library. That make my life much easier!
You need to build a sub-class of ListActivity. Then you can override onListItemClick to catch the event on click when the list item is clicked. But that is not always working, if you use your custom list adapter and inside the adapter has any button, check box and image button. If the adapter has this kind of checkable item, they seems to be catch the click event before onListItemClick. So onListItemClick is not work.
I found this problem when I build my AdvGen To Do List.
The standard way to do Ping in Android is using isReachable().
But I tested this only working in local network and total not working in emulator too!
I guess for external IP address, it will only work on rooted phones.
Moreover, I am thinking whether Mobile Provider will block ICMP Package too!
I have used HttpGet a lot in Android, but today, I started to build my first android widget. I used HttpGet for accessing some external feeds. I got UnknownHostException. I have placed in the use-permission tag in AndroidManifest.xml
Well, I found that is because I placed this tag under manifest element. I should place it under the receiver element
Finally the problem is solved.