• 组队开发最后冲刺周第二次会议


    会议时间:组队开发最后冲刺周第二次会议   星期日   时间早上8:30-9:00

    会议地点:二教   204教室

    到会人员:李志岩  王亚蕊 安帅 薛禄坤 张新宇                  

                        孙存良

    会议概要:

       1、总结开发的成果;

       2、讨论开发中遇到的问题;

      3、讨论如何发展用户;

      4、讨论今天的任务;

    会议详细内容:

    内容一:总结开发的成果

       实现了上课时间提醒功能;

       完美的实现了上课提醒功能,能够在有课的之前提醒同学上课;

    时间实现的源代码:

    import java.io.DataInputStream;

    import java.io.DataOutputStream;

    import java.net.ServerSocket;

    import java.net.Socket;

    import java.text.SimpleDateFormat;

    import java.util.Calendar; import java.util.Date;
    import android.app.Notification;

    import android.app.NotificationManager;

    import android.app.PendingIntent;

    import android.app.Service;

    import android.content.Context;

    import android.content.Intent;

    import android.database.Cursor;

    import android.os.Binder; import android.os.IBinder;
    public class MainService extends Service

     { private ServiceBinder sBinder = new ServiceBinder();
    @Override public IBinder onBind(Intent arg0) 

    { return sBinder; }
    private MessageThread messageThread = null;
    private Intent messageIntent = null; private PendingIntent messagePendingIntent = null;
    private int messageNotificationID = 1000; private Notification messageNotification = null;

    private NotificationManager messageNotificatioManager = null;
    @Override public void onStart(Intent intent, int startId) {
    messageNotification = new Notification(); messageNotification.icon = R.drawable.ic_launcher; messageNotification.tickerText = "智慧课堂提醒您:有新消息,点击查看!"; messageNotification.defaults = Notification.DEFAULT_SOUND; messageNotificatioManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    messageIntent = new Intent(this, Login.class); messagePendingIntent = PendingIntent.getActivity(this, 0, messageIntent, 0);
    messageThread = new MessageThread(); messageThread.isRunning = true; messageThread.start();
    }
    private String msg = null;
    class MessageThread extends Thread 

    { // 运行状态,下一步骤有大用 public boolean isRunning = true;
    public void run() 

    { while (isRunning) { Calendar cc = Calendar.getInstance(); int hour = cc.get(Calendar.HOUR); int minute = cc.get(Calendar.MINUTE); int second = cc.get(Calendar.SECOND);

    if(((hour==7)&&(minute==45)&&(second==0))||((hour==9)&&(minute==45)&&(second==0))||((hour==14)&&(minute==15)&&(second==0))||((hour==16)&&(minute==25)&&(second==0))||((hour==18)&&(minute==45)&&(second==0)))

    { int xingqi = 0; String ss="";  Date date=new Date();     

      SimpleDateFormat dateFm = new SimpleDateFormat("EEEE");         

         if(dateFm.format(date).equals("星期一"))     

      {       xingqi=1;       }     if(dateFm.format(date).equals("星期日"))   

     {    xingqi=0;    }       if(dateFm.format(date).equals("星期二"))     

      {       xingqi=2;       }       if(dateFm.format(date).equals("星期三"))   

       {       xingqi=3;       }       if(dateFm.format(date).equals("星期四"))   

       {       xingqi=4;       }       if(dateFm.format(date).equals("星期五"))   

       {       xingqi=5;       }       if(dateFm.format(date).equals("星期六"))     

      {       xingqi=6;       }       if(hour==7)       {       ss="1--2";       }   

     if(hour==9)       {       ss="3--4";       }    if(hour==14)      

     {       ss="5--6";       }    if(hour==16)       {       ss="7--8";       }

     TestSqlDatabase a=new TestSqlDatabase(MainService.this);          

     Cursor c = a.select("select * from course where day="+xingqi+" and time='"+ss+"'");          

     for(c.moveToFirst();!c.isAfterLast();c.moveToNext())       

        {               int snon = c.getColumnIndex("cname");               if(c.getShort(snon)==)           } }

    try {
    String serverMessage = getServerMessage(); if (serverMessage != null && !"".equals(serverMessage))

     { // 更新通知栏 messageNotification.setLatestEventInfo( MainService.this, "老师刚给你分发了文件!", "点击查看", messagePendingIntent); messageNotificatioManager.notify(messageNotificationID, messageNotification); // 每次通知完,通知ID递增一下,避免消息覆盖掉 messageNotificationID++; } } 

    catch (Exception e) { e.printStackTrace(); } } } }
    public String getServerMessage() { return "YES!"; } // 服务绑定 public class ServiceBinder extends Binder { public MainService getService() { return MainService.this; } }
    }

     

    内容二:讨论开发中遇到的问题

       1、 组队开发进入了最后阶段,有组员提出取消学生登录问题,我们对这个问题进行了详细的讨论,

         同学们意见不一,最后我们咨询了一下老师,采纳了老师的建议保留了学生登录界面。

       2、对是否保留背景音乐做出了讨论,最后决定暂时保留。

    内容三:讨论如何发展用户

       1、首先向全班推荐,由李志岩同学完成;

       2、每个组员向自己的好友推荐;

    内容四:讨论今天的任务

      会议最后大家讨论今天的任务,

      1、大家对自己的任务尽快完善,争取晚上进行项目组合,完成开发工作;

      2、教室查询薛禄坤尽快完善;

      3、添加随笔安帅尽快完善;

      4、每人向自己的好友推荐项目; 

     

     

     

  • 相关阅读:
    【MySQL】学生成绩
    【MySQL】统计累计求和
    【MySQL】查询不在表中的数据
    【MySQL】排名函数
    【Python】数据处理分析,一些问题记录
    【Github】如何下载csv文件/win10如何修改txt文件为csv文件
    【Windows】github无法访问/hosts文件只能另存为txt
    【C/C++】拔河比赛/分组/招商银行
    【C/C++】金币
    【C/C++】旋转数组的最小数字/ 剑指offer
  • 原文地址:https://www.cnblogs.com/lizhiyan-world/p/3751900.html
Copyright © 2020-2023  润新知