set action为Call时startActivity(intent);出现红线错误的解决方法
来源:互联网 发布:软件订阅模式 编辑:程序博客网 时间:2024/05/16 17:48
还有就是在用intent打电话时
比如
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:10086"));
startActivity(intent);
这时startActivity(intent)会出现红线错误,这是因为要进行try_catch保护并且catch里面要用SecurityException e
比如
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:10086"));
startActivity(intent);
这时startActivity(intent)会出现红线错误,这是因为要进行try_catch保护并且catch里面要用SecurityException e
阅读全文
0 0
- set action为Call时startActivity(intent);出现红线错误的解决方法
- Andengine 使用startActivity跳转时出现的Nullpointer的解决方法
- Action!Call拨打电话(Intent.ACTION.CALL的使用)
- Intent.ACTION.CALL
- Intent.ACTION.CALL
- StartActivity出现错误
- 使用Intent 的用法startActivity,使用intent-filter描述Activity的特征,使用setActiony设置action
- 安卓中android.intent.action.CALL与android.intent.action.DIAL的区别
- vs2013写Qt的程序时,出现红线
- context使用startActivity时的错误
- 出现Fatal error: Call to undefined function mysql_connect()错误的解决方法
- 运行opencv程序后出现runtime error! R6025-pure virtual function call 错误提示的解决方法
- 2、Swift出现Missing argument label 'XX:'in call 错误的解决方法
- CS 出现内存不能为write错误的解决方法
- 出现错误的解决方法:
- 出现错误的解决方法:
- 关于modelsim仿真出现红线的问题
- 使用高德地图API时出现错误为:10定位服务启动失败的解决方法
- 汉诺塔问题(递归)
- 用python爬虫爬取moodle全部课件并下载到本地
- java 一维数组求最大值最小值
- (DOM艺术)图片仓库改进一:完全分离
- HDU 3874 Necklace
- set action为Call时startActivity(intent);出现红线错误的解决方法
- maven核心,pom.xml详解
- 利用Java代码实现图片的下载:
- Codeforces 854
- 171007 逆向-PE压缩
- 例题8-4:传说中的车(问题分解)
- 了解JDBC
- NN-CRF
- 实现一个具有文件下载功能的网页