符合中小企业对网站设计、功能常规化式的企业展示型网站建设
本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...
商城网站建设因基本功能的需求不同费用上面也有很大的差别...
手机微信网站开发、微信官网、微信商城网站...
package com.example.testprogress; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.annotation.SuppressLint; import android.app.Activity; import android.app.ProgressDialog; @SuppressLint("HandlerLeak") public class MainActivity extends Activity { private ProgressDialog progressDialog = null; private boolean flag = true; private int count = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); progressDialog = new ProgressDialog(this); progressDialog.setMessage("数据获取中..."); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.setCancelable(false);//是否可以被返回键取消 progressDialog.show(); for(int i=0; i<100; i++){ new Thread(mRunnable).start(); } } private Runnable mRunnable = new Runnable(){ @Override public void run() { while(flag){ try { Thread.sleep(1000); count ++; mHandler.sendMessage(mHandler.obtainMessage()); } catch (InterruptedException e) { e.printStackTrace(); } } } }; private Handler mHandler = new Handler(){ public void handleMessage(Message msg){ Log.v("article", Thread.currentThread().getId()+""); if(count >= 4){ flag = false; progressDialog.dismiss(); } } }; }