I want to show automatic checklist in android. For example I can have 4 list of item with unchecked check box adjutant to that.
After 5 sec. delay I want to check the first item then move on to second. At the end of 20 sec. I should have all 4 check box checked one by one.
Any idea how should I go on doing this ? I can use list view with checkbox opeion on ..right ??
I am a .net programmer and this is new experience for me so any comment / advise is appreciated.
Here is a basic example I’ve just written:
This is the XML layout:
Explanation
It uses a class that extends
AsyncTaskwhich allows you to use threading in a easy to use/understand way. The way this class is executed is kind of simple:You can add as many checkboxes as you want. For instance:
By the way, I don’t know why you are trying to do this. But, if it’s for testing purposes, you better take a look at the instrumentation framework.