android中的线程处理 [英] Thread handling in android

查看:47
本文介绍了android中的线程处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登录是我的函数名称我希望在登录功能完成其工作后停止这些线程。

new Thread(new Runnable(){

public void run() {

登录();

}})。start();

解决方案

见..

http://stackoverflow.com/questions/1481569/how-to-start-thread-if-button-pressed-and-stop-it-if-pressed-again [ ^ ]

http://stackoverflow.com/questions/11865418/start-停止线程 [ ^ ]

login is my function name i want to stop these thread after login function finish its work.
new Thread(new Runnable(){
public void run(){
login();
}}).start();

解决方案

See..
http://stackoverflow.com/questions/1481569/how-to-start-thread-if-button-pressed-and-stop-it-if-pressed-again[^]
http://stackoverflow.com/questions/11865418/start-stop-thread[^]


这篇关于android中的线程处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆