摘要:
private ProgressDialog mProgressDlg = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a... 阅读全文
摘要:
1.从当前的Activity传递数据到下一个Activity: (1)发送方(当前的Activity): (2)接收方(即将跳转到的Activity): 2.从当前Activity返回数据到前一个Activity: 使用startActivityForResult()函数跳转; 接收方: 在原来的A 阅读全文
摘要:
DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); String str = "宽:" + metrics.widthPixels + " 长:" + metrics.heightPixels; 阅读全文