http://xinsheng.huawei.com/cn/index.php?app=forum&mod=Detail&act=index&id=140320
来源:互联网 发布:建信优化成长基金净值 编辑:程序博客网 时间:2024/05/21 11:09
为了方便大家交流,昨晚建的一个QQ群:
QQ群号:340296896
名称:HiSuite大家庭
欢迎大家加入
备注:王炜周末将会在群里把关于打车费报销流程和填写具体细节指导,以邮件形式告知大家,因为公司内网是无法填写报销电子流的,所以大家只能在家里外网环境下填写
http://xinsheng.huawei.com/cn/index.php?app=forum&mod=Detail&act=index&id=243421
- yanglw_ahut
- 小王爷
- 等级:
- 结帖率:95.45%
- oWangYi123456
- oWangYi123456
- 等级:
- 结帖率:0%
- u012073067
- qqqqaaaa12122
- 等级:
- 结帖率:0%
有
http://blog.csdn.net/ithomer/article/details/8963571
Linux 有趣命令
http://blog.csdn.net/ithomer/article/details/17595741
http://xinsheng.huawei.com/cn/index.php?app=forum&mod=Detail&act=index&id=140320
http://www.cnblogs.com/growing/archive/2010/11/19/1881372.html
http://blog.csdn.net/changemyself/article/details/7421476
http://blog.csdn.net/sunny2come/article/details/8290023
http://www.cnblogs.com/nikyxxx/archive/2012/06/14/2548944.html
昨天有朋友问如何获取Android手机中所有的短信,小编回去研究了一下,下面为大家进行讲解:
Java代码:
public String getSmsInPhone()
{
final String SMS_URI_ALL = "content://sms/";
final String SMS_URI_INBOX = "content://sms/inbox";
final String SMS_URI_SEND = "content://sms/sent";
final String SMS_URI_DRAFT = "content://sms/draft";
StringBuilder smsBuilder = new StringBuilder();
try{
ContentResolver cr = getContentResolver();
String[] projection = new String[]{"_id", "address", "person",
"body", "date", "type"};
Uri uri = Uri.parse(SMS_URI_ALL);
Cursor cur = cr.query(uri, projection, null, null, "date desc");
if (cur.moveToFirst()) {
String name;
String phoneNumber;
String smsbody;
String date;
String type;
int nameColumn = cur.getColumnIndex("person");
int phoneNumberColumn = cur.getColumnIndex("address");
int smsbodyColumn = cur.getColumnIndex("body");
int dateColumn = cur.getColumnIndex("date");
int typeColumn = cur.getColumnIndex("type");
do{
name = cur.getString(nameColumn);
phoneNumber = cur.getString(phoneNumberColumn);
smsbody = cur.getString(smsbodyColumn);
SimpleDateFormat dateFormat = new SimpleDateFormat(
"yyyy-MM-dd hh:mm:ss");
Date d = new Date(Long.parseLong(cur.getString(dateColumn)));
date = dateFormat.format(d);
int typeId = cur.getInt(typeColumn);
if(typeId == 1){
type = "接收";
} else if(typeId == 2){
type = "发送";
} else {
type = "";
}
smsBuilder.append("[");
smsBuilder.append(name+",");
smsBuilder.append(phoneNumber+",");
smsBuilder.append(smsbody+",");
smsBuilder.append(date+",");
smsBuilder.append(type);
smsBuilder.append("] ");
if(smsbody == null) smsbody = "";
}while(cur.moveToNext());
} else {
smsBuilder.append("no result!");
}
smsBuilder.append("getSmsInPhone has executed!");
} catch(SQLiteException ex) {
Log.d("SQLiteException in getSmsInPhone", ex.getMessage());
}
return smsBuilder.toString();
}
注释:
1、本函数用于获取手机中所有的短信,包括收件箱、发件箱、草稿箱等。
2、本函数可以运行在Service子类中,因为未使用Activity类的相关函数。
3、获取的短信包括:收发短信人名、手机号码、短信内容、短信发送接收的时间、短信的类型。
sms主要结构:
_id:短信序号,如100
thread_id:对话的序号,如100,与同一个手机号互发的短信,其序号是相同的
address:发件人地址,即手机号,如+8613811810000
person:发件人,如果发件人在通讯录中则为具体姓名,陌生人为null
date:日期,long型,如1256539465022,可以对日期显示格式进行设置
protocol:协议0SMS_RPOTO短信,1MMS_PROTO彩信
read:是否阅读0未读,1已读
status:短信状态-1接收,0complete,64pending,128failed
type:短信类型1是接收到的,2是已发出
body:短信具体内容
service_center:短信服务中心号码编号,如+8613800755500
4、为了获取短信,需要在AndroidManifest.xml文件中添加权限使用说明,如下:
<uses-permissionandroid:name="android.permission.READ_SMS"/>
5、本函数在真机上测试通过。
- http://xinsheng.huawei.com/cn/index.php?app=forum&mod=Detail&act=index&id=140320
- http://xinsheng.huawei.com/cn/forum/index.php?app=forum&mod=Detail&act=index&id=355911
- http://appxcode.com/index.php?con=index&act=category&cid=5
- http://enterprise.huawei.com/cn/feedback/buy_feedback/index.htm?nodeName=1
- http://jxnu.acmclub.com/index.php?app=problem_title&id=468&problem_id=1017
- 踏入社会(http://www.sysinfo.cn/index.php?action=show&id=90)
- Linux/Unix http://oreilly.com.cn/index.php?func=booklist&cat=46
- http://www.apkbus.com/forum.php?mod=viewthread&tid=19181
- http://www.eoeandroid.com/forum.php?mod=viewthread&tid=165974
- ecshop后台起始页index.php?act=main修改
- XSBase255 -linux 启动过程描述 引用自http://www.linuxeden.com/forum/blog/index.php?op=ViewArticle&articleId=230&blogId=102509
- http://sns.testin.cn/forum.php?gid=105
- http://www.devdiv.com/forum.php?mod=viewthread&tid=43010&highlight=%C1%A3%D7%D3
- http://act.hi.baidu.com/act/xmas/index.html?type=wt03参加活动送奖品哦,来找到你的有缘人参加吧
- 摄像头编程大全(源码)(c#) http://tmsoft.lsxy.com/index.php?load=read&id=434
- http://www.wlerp.com/News/detail.asp?id=22
- http://webcache.googleusercontent.com/search?q=cache:Xh34UJ65wvcJ:http://ja.w3support.net/index.php%
- http://sishuok.com/forum/blog/index.html?search_keywords=%E7%A0%94%E7%A3%A8%E8%AE%BE%E8%AE%A1%E6%A8%
- aspx web入侵渗透经验总结
- 数据库_jdbc_连接池+框架_改造分页案例
- jquery dialog打开时,焦点自动在第一个text框上
- 第十三周上机实践项目——汉诺塔
- 微博 vs 博客 思维表达的艺术
- http://xinsheng.huawei.com/cn/index.php?app=forum&mod=Detail&act=index&id=140320
- c++11新特性----constexpr (编译时常量)
- oc学习之旅:简单协议
- x264详细讲解
- Plan 9 简介
- reviewboard搭建-centos6.3
- 错误的TAF配置导致应用不能重连DB
- linux安装.deb格式的软件
- 使用PL/SQL将EXCEL数据导入到ORACLE数据库中