Android移动应用开发大作业——日程管理+邮件反馈

Android Studio 开发手机日历管理的APP,附带邮件反馈的功能

大三上学期Android移动应用开发课程写了个日程管理的APP,里面的东西比较简单,一个是可以查看手机里面所有日程的信息,我只选择了时间,标题和内容,可以进行增删改查,创建的日程在对应的时间会给一个提示,以消息的形式给出。另一个是邮件反馈,邮件反馈需要改一下发送方的和接收方,这个有需要的在代码里面改就行,我给你标注出来。

由于大作业时间就给了一个星期,加上还要复习别的课程,就草草了事,没写别的功能了。

不要关注为什么叫StudyApp,鬼知道我当时为什么起这个名。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
这是项目文件目录
在这里插入图片描述
在这里插入图片描述
这个是项目的配置文件,Android这个东西对版本要求的比较严格,下载下来项目后不要直接用Android Studio打开,可能会报n个错误,你自己建一个空项目,把代码文件粘贴过去,出什么错就去一个个解决,缺什么配置就去添加,这样应该能好一些。

链接我放在最后。

apply plugin: 'com.android.application'
repositories {
    
    
    jcenter()
    maven {
    
    
        url "https://maven.java.net/content/groups/public/"
    }
}

android {
    
    
    compileSdkVersion 24
    buildToolsVersion "31.0.0"
    defaultConfig {
    
    
        applicationId "com.example.test"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    
    
        release {
    
    
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
    
    
        pickFirst 'META-INF/*' // picks the JavaMail license file
    }

}

dependencies {
    
    


    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    
    
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    configurations {
    
     all*.exclude group: 'javax.activation', module: 'activation' }
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.sun.mail:android-mail:1.6.0'
    compile 'com.sun.mail:android-activation:1.6.0'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.google.code.gson:gson:2.7'
    compile 'com.android.support:design:24.2.1'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'

}

这里的EMAIL需要改成接收方的地址,自行修改吧,在config文件里,当时写的时候觉得麻烦,就在里面写了几个参数,后面的参数都放外面了。
在这里插入图片描述
这些参数除了TAG都需要改。
第一个去找SMTP授权码,百度搜一下都有教程
第二个是smtp地址,smtp 地址是 smtp 的域名服务器, 例如qq邮箱,地址就填写smtp.qq.com,我的是163
第三个就是对应的发送方邮箱地址
在这里插入图片描述
最后再说一句,我做的这个App是有Bug的,日程时间如果设置成中午12点到1点之间的话,它的提醒时间会变成凌晨0点到1点,这个我没仔细找,反正检查的时候老师也没问,就不改了,还能省下几根头发,这个艰巨的任务就交给你了。
其他的东西就不多说了,太多也说不完,想要知道运行流程的话从主活动开始看吧,我觉得我写的代码不是那么难,慢慢看,加油。

百度网盘链接:
链接:https://pan.baidu.com/s/1ueL7rtiOjom_Ke2-T7oCxw
提取码:atpe

有什么疑问加QQ 2198832604

猜你喜欢

转载自blog.csdn.net/scorpion_legend/article/details/122712748