摘要:
1.Activity 的生命周期oncreater 创建activity时ondestroy 销毁activity时onStart 可见时onStop 不可见时onResume 有焦点时onPause 无焦点时onRestart 重新启动 2.横竖屏切换: android:screenOrienta 阅读全文
摘要:
显示意图:(通过指定具体的包名和类名) Intent intent=new Intent(); intent.setClassName("要跳转的应用程序包名","要跳转的类名的完整路径"); //intent.setClassName("com.test","com.activity.TestAc 阅读全文
摘要:
<intent-filter><intent-filter android:icon="drawable resource" android:label="string resource" android:priority="integer" > <action> <category> <data> 阅读全文
摘要:
1.<compatible-screens><compatible-screens> <screen android:screenSize=["small" | "normal" | "large" | "xlarge"] android:screenDensity=["ldpi" | "mdpi" 阅读全文
摘要:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="string" android:sharedUserId="string" android:sharedUserLabel="string re 阅读全文
摘要:
1.get请求方式 2.Post请求 1 public void httpPost() throws Exception { 2 Log.e(TAG, " httpPost "); 3 URL url = new URL("url地址"); 4 HttpURLConnection conn = (H 阅读全文
摘要:
收发消息的流程: 发消息: mHandler.sendMessage()-->...-->enqueueMessage()-->将当前的Handler对象赋值给 msg.target -->最终将消息添加到消息队列 queue.enqueueMessage 收消息: Looper.loop()--> 阅读全文
摘要:
1 public class ListViewActivity extends AppCompatActivity { 2 ListView lvData; 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.onCreate(savedInstan... 阅读全文