//拨打电话号码已经封装好了并且已经暴露出来了 //Intent 意图 setAction 要去行动 Intent intent= new Intent(); intent.setAction(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:"+... ...
分类:
其他好文 时间:
2019-02-24 12:18:56
阅读次数:
202
一个app打开另一个app的指定页面方法 有以下几种 1、通过包名、类名 2、通过intent的 action 3、通过Url 方案1、 方案2、 在目标Activity的配置文件中添加具体的action 方案3、 判断要打开的app是否安装: ...
分类:
移动开发 时间:
2019-02-20 23:59:03
阅读次数:
510
1、共享锁(Shared lock) T1: select * from table (请想象它需要执行1个小时之久,后面的sql语句请都这么想象) T2: update table set column1='hello' 2、更新锁(Update lock) T1: select * from t ...
分类:
数据库 时间:
2019-02-12 18:51:16
阅读次数:
1047
布局代码 <! android:background="@drawable/btnselector" 后台代码 import android.app.Activity; import android.content.Intent; import android.os.Bundle; import a ...
分类:
移动开发 时间:
2019-02-11 23:57:35
阅读次数:
262
在 SDK 26,通过令静态注册的广播接收器失效 以限制后台过多应用启动,接受广播等情况。 当运行时,会有以下LOG: Background execution not allowed: receiving Intent 1. 如果是自己编写发送广播,可以通过 以下方式使广播工作 (1) (2) i ...
分类:
其他好文 时间:
2019-02-08 15:56:20
阅读次数:
412
""" The Zen of Python Python之禅 Beautiful is better than ugly. 优美胜于丑陋。【Python以编写优美的代码为目标】 Explicit is better than implicit. 明了胜于晦涩。【优美的代码应当是明了的,命名规范,风格... ...
分类:
编程语言 时间:
2019-01-30 18:41:44
阅读次数:
196
自动化脚本执行过程不稳定,又误报了,怎么办?我们来分析下,出现运行不稳定的几种问题: 第一个问题: 1、在操作元素之前,需要先判断元素是否可见,Wait Until Element Is Visible 2、打开浏览器后使用Set Browser Implicit Wait方法,隐式等待元素出现或命 ...
分类:
其他好文 时间:
2019-01-29 18:00:16
阅读次数:
212
//1.拨打电话 // 给移动客服10086拨打电话 Uri uri = Uri.parse("tel:10086"); Intent intent = new Intent(Intent.ACTION_DIAL, uri); startActivity(intent); //2.发送短信 // 给 ...
分类:
移动开发 时间:
2019-01-28 17:42:20
阅读次数:
178
从 Android 7.0 开始,Android SDK 中的 StrictMode 策略禁止开发人员在应用外部公开 file:// URI。具体表现为,当我们在应用中使用包含 file:// URI 的 Intent 离开自己的应用时,程序会发生FileUriExposedException 异常 ...
分类:
移动开发 时间:
2019-01-28 10:46:13
阅读次数:
387