Created
September 12, 2019 15:14
-
-
Save furkanaskin/7e2db01a822234af996deec7644afdf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Handler handler = new Handler() { | |
@Override | |
public void handleMessage(Message msg) { | |
// UI'i burada güncelle. | |
} | |
} | |
Runnable runnable = new Runnable() { | |
public void run() { | |
// Burada network çağrısı yapılır. | |
handler.sendEmptyMessage(0); | |
} | |
}; | |
Thread mythread = new Thread(runnable); | |
mythread.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment