Fork me on GitHub

2017年1月23日

延迟变量

摘要: ---------siwuxie095 命令: setlocal enabledelayedexpansion 扩展本地环境变量延迟 或 延迟环境变量扩展 set:设置; local:本地(环境变量)enable:能够; delayed:延迟; expansion:扩展setl... 阅读全文

posted @ 2017-01-23 20:49 siwuxie095 阅读(466) 评论(0) 推荐(0) 编辑

2017年1月22日

errorlevel 续2

摘要: -------siwuxie095 %ERRORLEVEL%值一览表: ATTRIB.EXE(a) Target file/folder not found = ERRORLEVEL 1(b) Invalid switch = ERRORLEVEL 1(c) Sharing violation (target file in use) ... 阅读全文

posted @ 2017-01-22 16:48 siwuxie095 阅读(814) 评论(0) 推荐(0) 编辑

2017年1月16日

if

摘要: -----siwuxie095 if 执行批处理程序中的条件处理 语法: IF [NOT] ERRORLEVEL number command IF [NOT] string1==string2 command IF [NOT] EXIST filename command 参数说明: NOT 指定只有条件为 false 的情况下,Windows 才 ... 阅读全文

posted @ 2017-01-16 23:50 siwuxie095 阅读(559) 评论(0) 推荐(0) 编辑

errorlevel 续1

摘要: -------siwuxie095 常用 errorlevel 返回值: backup 0 备份成功 1 未找到备份文件 2 文件共享冲突阻止备份完成 3 用户用 ctrl-c 中止备份 4 由于致命的错误使备份操作中止 diskcomp 0 盘比较相同 1 盘比较不同 2 用户通过 ctrl-c 中止比较操作 3 由于致命的错误使比较操作中止 4 预置错误中止比较 ... 阅读全文

posted @ 2017-01-16 22:10 siwuxie095 阅读(198) 评论(0) 推荐(0) 编辑

2017年1月15日

Intent的概念及应用(二)

摘要: ------siwuxie095 1、Intent过滤器 intent-filter 相关选项 如果多个Activity拥有同样的action,在启动时这个action时的情况: 首先在LearnIntent下new一个 Empty Activity:MyAty1, 在其对应的布局中添加一个TextView,起标识作用 在AndroidManifest.xml中... 阅读全文

posted @ 2017-01-15 22:03 siwuxie095 阅读(400) 评论(0) 推荐(0) 编辑

Intent的概念及应用(一)

摘要: ------siwuxie095 1、显式Intent (1)先创建一个项目:LearnIntent,选择API:21 Android 5.0, 选择Empty Activity,完成 (2)创建一个类:MyAty,让它继承自Activity,再绑定一个新创建的 视图:myaty,最后在AndroidManifest.xml中,对Intent进行配置 ... 阅读全文

posted @ 2017-01-15 18:02 siwuxie095 阅读(535) 评论(0) 推荐(0) 编辑

2017年1月2日

Activity启动模式

摘要: siwuxie095 共4种启动模式:standard singleTop singleTask singleInstance 1、标准启动模式(standard) 也即默认的启动模式 (1)先创建一个项目:LaunchMode,选择API:21 Android 5.0 选择Empty Activi 阅读全文

posted @ 2017-01-02 23:01 siwuxie095 阅读(218) 评论(0) 推荐(0) 编辑

Activity之间传递参数(四)

摘要: siwuxie095 获取Activity的返回参数 1、首先修改两个布局文件,都修改为 LinearLayout 布局, 添加orientation属性为:vertical。 (1)为 activity_main.xml 添加一个 TextView,用于显示返回的数据 <?xml version= 阅读全文

posted @ 2017-01-02 19:27 siwuxie095 阅读(259) 评论(0) 推荐(0) 编辑

Activity之间传递参数(三)

摘要: ------siwuxie095 传递值对象,即自定义的有数据类型的对象 1、首先 new 一个 class:User,用于创建自定义对象,同时右键 Generate 出 Constructor、setter 和 getter 方法(很简单,也可以手敲): package com.siwuxie095.sendargs; /** ... 阅读全文

posted @ 2017-01-02 02:33 siwuxie095 阅读(268) 评论(0) 推荐(0) 编辑

Activity之间传递参数(二)

摘要: ------siwuxie095 传递数据包 1、传递数据包要用到Bundle,MainActivity.java中: package com.siwuxie095.sendargs; import android.content.Intent; import android.support.v7.app.AppCompatActivity; ... 阅读全文

posted @ 2017-01-02 01:05 siwuxie095 阅读(232) 评论(0) 推荐(0) 编辑

导航