06 2019 档案
摘要:显示意图:(通过指定具体的包名和类名) 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...
阅读全文
摘要:android 提供了一个数据库操作的帮助类 SQLiteOpenHelper,我定义一个类继承SQLiteOpenHelper即可完成数据的创建和更新操作。 一、创建类基础 SQLiteOpenHelper 二、获取SQLiteDatabase对象操作数据库 getReadableDatabase
阅读全文
摘要:方式一:字符串拼接 方式二: XmlSerializer 解析XML:xmlPullParser
阅读全文
摘要:一、Context:当前上下文 <1>读写文件: 当前上下文目录: String path=context.getFilesDir().getPath();//getFilesDir()方法用于获取 /data/data/<application package>/files目录 直接操作文件 当前
阅读全文
浙公网安备 33010602011771号