2011. 2. 8. 12:50
Program Languages/Android / JAVA
// Main thread calls a this method
private void mainProcessing(){
// This Runnable execute the function to run in background
private Runnable doBackgroundThread = new Runnable(){
// function to run in background
private void backgroundThreadProcess(){
private void mainProcessing(){
// This code moves the task needs time to child thread
Thread thread = new Thread(null, doBackgroundThreadProcess,"background");
thread.start();
}
// This Runnable execute the function to run in background
private Runnable doBackgroundThread = new Runnable(){
public void run(){
backgroundThreadProcess();
}
};
// function to run in background
private void backgroundThreadProcess(){
// Task
}
'Program Languages > Android / JAVA' 카테고리의 다른 글
JSON 개요 (0) | 2011.06.29 |
---|---|
Can't bind to local 8600 for debugger Problem (1) | 2011.06.29 |
JSON ) Install Aptana Plug-in in Eclipse(Helios) (0) | 2011.06.29 |
연락처로부터 전화번호 정보 가져오기 (0) | 2011.06.26 |
[Tip] Call Activity like dialog style! (1) | 2011.03.08 |