-
基于距离传感器的自动锁屏程序
基于距离传感器的自动锁屏程序,使用android studio平台(Automatic lock screen program based on distance sensor)
- 2017-08-24 21:57:36下载
- 积分:1
-
自己开发的Android 直接发送短信方法附上代码
这是一个自己开发的Android 直接发送短信方法附上代码,Android 发短信功能,包括了对内容合法性的验证,发送完成弹出提示。自己开发的直接发送短信的方法:
private void sendSMS(String telNo,String smsStr,View v){
PendingIntent pi=
PendingIntent.getActivity(this, 0, new Intent(this,Sample_11_1.class), 0);
SmsManager sms=SmsManager.getDefault();
sms.sendTextMessage(telNo, null, smsStr, pi, null);
//短信发送成功给予提示
Toast.makeText(
Sample_11_1.this, //上下文
"恭喜你,短信发送成功!", //提示内容
5000 //信息显示时间
).show();
v.setEnabled(true);//短信发送完成后恢复发送按钮的可用状态
}
对手机号码和短信内容的验证部分:
//获取输入的电话号码
EditText etTel=(EditText)findViewById(R.id.EditText02);
String telStr=etTel.getText().toString();
//获取输入的短信内容
EditText etSms=(EditText)findViewById(R.id.EditText01);
String smsStr=etSms.getText().toString();
//判断号码字符串是否合法
if(PhoneNumberUtils.isGlobalPhoneNumber(telStr)){//合法则发送短信
v.setEnabled(false);//短信发送完成前将发送按钮设置为不可用
sendSMS(telStr,smsStr,v);
}
else{//不合法则提示
Toast.makeText(
Sample_11_1.this, //上下文
"电话号码不符合格式!!!
- 2022-08-23 23:05:12下载
- 积分:1
-
emwin例子源码
【实例简介】
- 2021-08-20 00:31:52下载
- 积分:1
-
android 提醒小闹钟 例子源码
android 提醒小闹钟 例子源码
- 2014-10-17下载
- 积分:1
-
Andriod 游戏回到战国 源码分享
Andriod 游戏回到战国 源码分享,包括了游戏本身的源代码,还包括了游戏设计系统-上层可遇层设计工具,游戏设计系统-底层不可遇层设计,包括了地图元素设计面板、地图层绘制面板等。
游戏中,关于status的几种状态的说明:工作状态 0:什么都不干 1:导入图片 2:保存元素 3:设置占位行列 4:设置不可通过行列列表 5:保存元素列表 6:加载元素列表 7:删除元素。
- 2022-11-02 05:25:08下载
- 积分:1
-
个性化的移动搜索
它 s 按用户偏好的搜索它的有效方法是 impletemented 使用 lib svm 算法与朴素贝叶斯分类方法
- 2022-02-03 08:14:54下载
- 积分:1
-
9731388
symbian 图标停靠在状态栏功能齐全 图标停靠在状态栏功能齐全()
- 2018-07-08 10:48:13下载
- 积分:1
-
异步任务中的应用
Asyntask 应用程序是一个 android 的应用基本上与 asyntask 和它的法像售前售后和 asyntask 背景法相关的。
- 2022-07-01 07:08:34下载
- 积分:1
-
Apress-Pro-Android-Apps-Performance-Optimization-
I thank the team at Apress who made this book possible: Steve Anglin, Corbin Collins, Jim
Markham, and Jill Steinberg. Working with all of them was a real pleasure and I can with
confidence recommend them to any author.
I also want to thank the tech reviewers: Charles Cruz, Shane Kirk, and Eric Neff. They
provided invaluable feedback, often catching mistakes I would not have seen even after dozens of
readings.
To all my friends whom I did not get to see as often as I would have liked while I was working
on this book, I give my thanks too: Marcely, Mathieu, Marilen, Maurice, Katie, Maggie, Jean-René,
Ruby, Greg, Aline, Amy, and Gilles, I promise I will make up for the lost time. Last but not least, I
owe a lot to three people: Eddy Derick, Fabrice Bernard, and Jean-Louis Gassée. Sometimes all it
takes is an injured toe and a broken suitcase.
- 2012-11-26 00:27:29下载
- 积分:1
-
Android_Communication_design
andriod通信设计的硕士论文。清华大学论文。非常详细。嵌入式设计必备资料。(andriod communication design master' s thesis. Tsinghua University thesis. Very detailed. Essential information embedded design.)
- 2011-09-30 23:45:37下载
- 积分:1