示例用法: Public Classic mThread implements Runnable{ Public void Run() If (true) //somethingIntent intent = new Intent (MainActivity, esp.class); }} 更新这是我遇到问题的代码: public class cBT_startcheck extends MainActivity implement
我对android完全陌生,我只想知道这是否是在主线程之外更新UI的任何可行和可行的方法。仅从我的代码中,我在下面列出了这一点,我从这段代码中了解到这一点,这根本不可能。但是,问题是--我只想使用另一个线程更新UI。请提前帮助我,谢谢!Override// Inflate the menu; this adds items to the actionpresent.
getMenuInflater().inflate(R.m