Changing Views in Activity

in Android switching between views is a way to keep information, which have been given by user without saving them to file or making them parceable. But unfortunately it also takes some work to get it working. Other solution to get same result is using multiple activities. tab pane is a way to make using multiple tabs easier.

Here is example of changing views in one activity. Also uses random, multiple threads, changing text colour,size of buttons and similar.

ViewExample.zip(code doesn't work at moment)

links:

http://stackoverflow.com/questions/2072244/android-what-is-better-multiple-activities-or-switching-views-manually

http://www.anddev.org/how_to_switch_views_in_an_activity-t10063.html

http://mortalpowers.com/news/how-to-get-current-layout-object-on-android

http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Random.html

http://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html