实现一个课堂管理系统,将已完成的数据库部分增加聊天室部分
apk文件名:
apk资源文件:
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.lgl.answersystem"><uses-permission android:name="android.permission.INTERNET" /><!-- 允许联网 --><uses-permission android:name="android.permission.INTERNET" /><!-- 获取GSM(2g)、WCDMA(联通3g)等网络状态的信息 --><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><!-- 获取wifi网络状态的信息 --><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><!-- 保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 --><uses-permission android:name="android.permission.WAKE_LOCK" /><!-- 获取sd卡写的权限,用于文件上传和下载 --><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><!-- 允许读取手机状态 用于创建BmobInstallation --><uses-permission android:name="android.permission.READ_PHONE_STATE" /><applicationandroid:name=".MyApplication"android:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:supportsRtl="true"android:theme="@style/AppTheme"><activity android:name=".MainActivity"><!--<intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter>--></activity><activity android:name=".FunctionListActivity"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity><activity android:name=".VerificationActivity" /><activity android:name=".WechatActivity"></activity><providerandroid:name="cn.bmob.v3.util.BmobContentProvider"android:authorities="com.lgl.answersystem.BmobContentProvider"></provider><activity android:name=".AddActivity"></activity><activity android:name=".ChatRoom"></activity></application></manifest>
JAVA文件:
build.gradle配置文件
android {compileSdkVersion 28buildToolsVersion '28.0.2'defaultConfig {applicationId "com.lgl.answersystem"minSdkVersion 15targetSdkVersion 28versionCode 1versionName "1.0"}buildTypes {release {minifyEnabled falseproguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}}useLibrary 'org.apache.http.legacy'
}dependencies {implementation 'com.android.support.constraint:constraint-layout:1.1.3'compile fileTree(dir: 'libs', include: ['*.jar'])testCompile 'junit:junit:4.12'compile 'com.android.support:appcompat-v7:28.0.0-alpha3'implementation 'cn.bmob.android:bmob-sdk:3.6.9-rc2'implementation "io.reactivex.rxjava2:rxjava:2.2.2"implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'implementation 'com.squareup.okio:okio:2.1.0'implementation 'com.google.code.gson:gson:2.8.5'implementation 'com.squareup.okhttp3:okhttp:3.12.0'implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'implementation 'com.android.support:percent:28.0.0-alpha3'implementation 'com.android.support.constraint:constraint-layout:1.1.2'testImplementation 'junit:junit:4.12'androidTestImplementation 'com.android.support.test:runner:1.0.2'androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
工程审核中...
审核通过:课堂管理系统