1.修改项目介绍PPT位置;

2.修改项目的用例图和部署图;
3.在doc中增加宣传材料的文件夹;
4.提交项目自评表和课程实践汇报的PPT
This commit is contained in:
Chanlen 2018-06-05 17:25:53 +08:00
parent b5becd0445
commit 19b1edf4f6
26 changed files with 161 additions and 4 deletions

View File

@ -1,12 +1,17 @@
This is a brief introduce of our software program.
doc: 软件设计过程中的相关文档
|---->软件需求构想与描述.docx: 有关《Baby's Escort》的软件创意文档
|---->Baby's Escort软件需求规格说明书.doc: 有关《Baby's Escort》的软件需求规格的具体内容
|---->软件需求构想与描述.docx: 有关《幼儿实时监视预警系统》的软件创意文档
|---->幼儿实时监视预警系统软件需求规格说明书.doc: 有关《幼儿实时监视预警系统》的软件需求规格的具体内容
|---->软件体系结构图.docx: 软件的开发视图、物理视图和逻辑视图
|---->模型: 软件设计过程中产生的模型
|---->Baby's Escort.pptx: 软件的简单介绍
|---->幼儿实时监视预警系统-项目进度报告.pptx项目第一次进度汇报的PPT
|---->软件项目开发计划.docx: 简明的软件开发计划文档
|---->幼儿实时监视预警系统软件工程实践自评表.xlsx: 项目自评表
|---->幼儿实时监视预警系统介绍: 项目介绍相关的PPT
|---->幼儿实时监视预警系统-课程实践汇报.pptx: 项目验收汇报的PPT
|---->幼儿实时监视预警系统宣传材料: 项目的宣传海报等材料
src: 存储软件设计过程中的相关代码
|---->dangerDetect: 通过图像识别的方式检测幼儿是否可能受到危险
|---->EBaby: 手机端的代码

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 14 MiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,128 @@
package com.github.rosjava.android_apps.teleop;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.util.ArrayList;
/**
* Created by MV-Killer on 2018/5/25.
*/
public class SendMesActivity extends Activity {
/**发送按钮**/
Button button = null;
/**收件人电话**/
EditText mNumber = null;
/**编辑信息**/
EditText mMessage = null;
/**发送与接收的广播**/
String SENT_SMS_ACTION = "SENT_SMS_ACTION";
String DELIVERED_SMS_ACTION = "DELIVERED_SMS_ACTION";
Context mContext = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_send_message);
button = (Button) findViewById(R.id.btnSendSMS);
mNumber = (EditText) findViewById(R.id.editTextPhoneNo);
mMessage = (EditText) findViewById(R.id.editTextSMS);
mContext = this;
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
/** 拿到输入的手机号码 **/
String number = mNumber.getText().toString();
/** 拿到输入的短信内容 **/
String text = mMessage.getText().toString();
/** 手机号码 与输入内容 必需不为空 **/
if (!TextUtils.isEmpty(number) && !TextUtils.isEmpty(text)) {
sendSMS(number, text);
}
}
});
// 注册广播 发送消息
registerReceiver(sendMessage, new IntentFilter(SENT_SMS_ACTION));
registerReceiver(receiver, new IntentFilter(DELIVERED_SMS_ACTION));
}
private BroadcastReceiver sendMessage = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
//判断短信是否发送成功
switch (getResultCode()) {
case Activity.RESULT_OK:
Toast.makeText(context, "短信发送成功", Toast.LENGTH_SHORT).show();
break;
default:
Toast.makeText(mContext, "发送失败", Toast.LENGTH_LONG).show();
break;
}
}
};
private BroadcastReceiver receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
//表示对方成功收到短信
Toast.makeText(mContext, "对方接收成功",Toast.LENGTH_LONG).show();
}
};
/**
* 参数说明
* destinationAddress:收信人的手机号码
* scAddress:发信人的手机号码
* text:发送信息的内容
* sentIntent:发送是否成功的回执用于监听短信是否发送成功
* DeliveryIntent:接收是否成功的回执用于监听短信对方是否接收成功
*/
private void sendSMS(String phoneNumber, String message) {
// ---sends an SMS message to another device---
SmsManager sms = SmsManager.getDefault();
// create the sentIntent parameter
Intent sentIntent = new Intent(SENT_SMS_ACTION);
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, sentIntent,
0);
// create the deilverIntent parameter
Intent deliverIntent = new Intent(DELIVERED_SMS_ACTION);
PendingIntent deliverPI = PendingIntent.getBroadcast(this, 0,
deliverIntent, 0);
//如果短信内容超过70个字符 将这条短信拆成多条短信发送出去
if (message.length() > 70) {
ArrayList<String> msgs = sms.divideMessage(message);
for (String msg : msgs) {
sms.sendTextMessage(phoneNumber, null, msg, sentPI, deliverPI);
}
} else {
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliverPI);
}
}
}

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/editTextPhoneNo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/editTextSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btnSendSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="发送"/>
</LinearLayout>