我有很多ASP.NET页面和服务器数据库连接.当从服务器到客户端请求时,它需要一些时间来完全加载.现在我想显示一个角度加载条直到页面加载..它工作正常.但我想在加载页面时禁用该页面.请看这个我用于
anulgar-loading-bar示例链接的链接
请帮帮我.
提前致谢.
我想安排或排队在后台执行Multiple AsyncTask.我有一个在Service中运行的HTTP post请求的AsyncTask,同时我在AsyncTask的UI线程中再发一个HTTP请求.
UI线程执行时间太长,因为已经有一个线程在服务中运行.如何解决这个问题.
我需要暂停服务线程,我想首先执行UI线程,然后再次为AsyncTask重新启动服务线程.
提前致谢
java multithreading android priority-queue android-asynctask
My Android button color is blue. I want to change the button color to red for 5 seconds. After 5 seconds, I need to change the button color back to blue.
Here is my code
new Handler().postDelayed(new Runnable() {
public void run() {
eyesOnchkBtn.setBackgroundColor(Color.RED);
}
}, 5000);
eyesOnchkBtn.setBackgroundColor(Color.BLUE); // It wont change the color button as normal
Run Code Online (Sandbox Code Playgroud)