Click Demo to see the demo.
Here is the code.
- Login activity
- In this activity, users can register a new account or login with the existed account.
- This activity has integrated advertisement.
- Event activity : for user to post event and search event
- In report fragment, users can input the description, title and location and select picture for a event and click report to post it to the network.
- In search fragment, users can search the events nearby and comment, give a like to a event.
- In the search fragment, user friendly advertisements have been integrated.
- comment activity:
- this activity is for user to post comment for a event. Users can also give a like to the selected event.
[wpvideo plic9rEk]
- no specific requirement
- Install Android studio
- add the following code to build.gradle
-
apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "com.laioffer.eventreporter" minSdkVersion 23//must lower than the version of machine ?? what is machine targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }
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' })
compile 'com.android.support:design:25.1.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.firebase:firebase-database:9.6.0' compile 'com.google.firebase:firebase-auth:9.6.0' compile 'com.google.firebase:firebase-storage:9.6.0' compile 'com.google.firebase:firebase-ads:9.6.0' compile 'com.google.android.gms:play-services-maps:9.6.0' compile 'com.android.support:appcompat-v7:25.3.1' testCompile 'junit:junit:4.12'
} apply plugin: 'com.google.gms.google-services'