This Handler will hide the textview in a few seconds later. public Handler () Since : API level 1 Default constructor associates this handler with the queue for the current thread. If there isn't one, this handler won't be able to receive messages. Define a runnable variable with your code. Runnable hide = new Runnable() { @Override public void run() { // TODO Auto-generated method stub textview.setVisibility(View.INVISIBLE); } }; public final boolean postDelayed (Runnable r, long delayMillis) Since: API Level 1 Parameters r The Runnable that will be executed. delayMillis The delay (in milliseconds) until the Runnable will be executed. Returns Returns true if the Runnable was successfully placed in to the message queue. Returns false on failure, usually because the looper proces...
A plat with simple tutorial for native android developers.