Android.os.handler
http://developer.android.com/intl/ja/reference/android/os/Handler.html
A Handler allows you to send and process
Sample:
1. First Declare your handler
private final static Handler handler = new Handler();
2. Implement a class to handle your messages
3. Send Process to your Class
Define your ACTION to process intent.ACTION
To be cont.
A Handler allows you to send and process
Message
and Runnable objects associated with a thread's MessageQueue
. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue.Sample:
1. First Declare your handler
private final static Handler handler = new Handler();
2. Implement a class to handle your messages
3. Send Process to your Class
Define your ACTION to process intent.ACTION
To be cont.
コメント
コメントを投稿