Skip to content

Commit 4d33100

Browse files
committed
2 parents ead5536 + 1f89930 commit 4d33100

File tree

13 files changed

+52
-16
lines changed

13 files changed

+52
-16
lines changed

app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ dependencies {
3838
//Butterknife dependencies
3939
implementation 'com.jakewharton:butterknife:8.8.1'
4040
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
41+
implementation 'com.google.firebase:firebase-core:16.0.1'
42+
implementation 'com.google.firebase:firebase-messaging:17.4.0'
4143
}
44+
45+
apply plugin: 'com.google.gms.google-services'

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
android:theme="@style/AppTheme"
1414
android:usesCleartextTraffic="true">
1515

16+
<service android:name=".NotificationService">
17+
<intent-filter>
18+
<action android:name="com.google.firebase.MESSAGING_EVENT" />
19+
</intent-filter>
20+
</service>
21+
1622
<activity android:name=".Activities.ScheduleActivity"></activity>
1723

1824
<activity android:name=".Activities.SplashScreen"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package dpi.ks19.participantapp;
2+
3+
import android.app.Notification;
4+
import android.support.v4.app.NotificationCompat;
5+
import android.support.v4.app.NotificationManagerCompat;
6+
7+
import com.google.firebase.messaging.FirebaseMessagingService;
8+
import com.google.firebase.messaging.RemoteMessage;
9+
10+
public class NotificationService extends FirebaseMessagingService {
11+
@Override
12+
public void onMessageReceived(RemoteMessage remoteMessage) {
13+
super.onMessageReceived(remoteMessage);
14+
Notification notification = new NotificationCompat.Builder(this)
15+
.setContentTitle(remoteMessage.getNotification().getTitle())
16+
.setContentText(remoteMessage.getNotification().getBody())
17+
.setSmallIcon(R.drawable.ks_logo)
18+
.build();
19+
NotificationManagerCompat manager = NotificationManagerCompat.from(getApplicationContext());
20+
manager.notify(123, notification);
21+
}
22+
}
89.9 KB
Loading
-108 KB
Loading
25.3 KB
Loading

app/src/main/res/drawable/p_final.jpg

70 KB
Loading
-77.1 KB
Binary file not shown.
-123 KB
Loading
-52.8 KB
Loading

app/src/main/res/layout/activity_proshows.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
</LinearLayout>
201201
</android.support.v7.widget.CardView>
202202

203-
<!-- ChoreNite -->
203+
<!-- Crazy Mohan -->
204204
<android.support.v7.widget.CardView
205205
android:layout_gravity="center"
206206
android:layout_width="match_parent"
@@ -221,7 +221,7 @@
221221
android:layout_width="match_parent"
222222
android:layout_height="190dp"
223223
android:scaleType="centerCrop"
224-
android:src="@drawable/choreo_final"/>
224+
android:src="@drawable/crazymohan_final"/>
225225

226226
<LinearLayout
227227
android:layout_width="match_parent"
@@ -238,7 +238,7 @@
238238
android:layout_width="wrap_content"
239239
android:layout_gravity="center"
240240
android:textSize="25sp"
241-
android:text="23"
241+
android:text="22"
242242
android:textColor="#e91e63"
243243
android:layout_height="wrap_content" />
244244
<TextView
@@ -273,7 +273,7 @@
273273
android:layout_height="wrap_content">
274274
<TextView
275275
android:layout_width="wrap_content"
276-
android:text="@\ OPEN AIR THEATRE"
276+
android:text="@\ CHANAKYA AUDI"
277277
android:textAllCaps="true"
278278
android:textSize="15sp"
279279
android:textStyle="bold"
@@ -289,7 +289,7 @@
289289
</LinearLayout>
290290
</android.support.v7.widget.CardView>
291291

292-
<!-- Navin Chander -->
292+
<!-- ChoreNite -->
293293
<android.support.v7.widget.CardView
294294
android:layout_gravity="center"
295295
android:layout_width="match_parent"
@@ -310,7 +310,7 @@
310310
android:layout_width="match_parent"
311311
android:layout_height="190dp"
312312
android:scaleType="centerCrop"
313-
android:src="@drawable/navin_final"/>
313+
android:src="@drawable/choreo_final"/>
314314

315315
<LinearLayout
316316
android:layout_width="match_parent"
@@ -327,7 +327,7 @@
327327
android:layout_width="wrap_content"
328328
android:layout_gravity="center"
329329
android:textSize="25sp"
330-
android:text="24"
330+
android:text="23"
331331
android:textColor="#e91e63"
332332
android:layout_height="wrap_content" />
333333
<TextView
@@ -451,7 +451,7 @@
451451
android:layout_height="wrap_content">
452452
<TextView
453453
android:layout_width="wrap_content"
454-
android:text="@\ TBD"
454+
android:text="@\ CHANAKYA AUDI"
455455
android:textAllCaps="true"
456456
android:textSize="15sp"
457457
android:textStyle="bold"
@@ -467,7 +467,7 @@
467467
</LinearLayout>
468468
</android.support.v7.widget.CardView>
469469

470-
<!-- Crazy Mohan -->
470+
<!-- Navin Chander -->
471471
<android.support.v7.widget.CardView
472472
android:layout_gravity="center"
473473
android:layout_width="match_parent"
@@ -488,7 +488,7 @@
488488
android:layout_width="match_parent"
489489
android:layout_height="190dp"
490490
android:scaleType="centerCrop"
491-
android:src="@drawable/crazymohan_final"/>
491+
android:src="@drawable/navin_final"/>
492492

493493
<LinearLayout
494494
android:layout_width="match_parent"
@@ -505,7 +505,7 @@
505505
android:layout_width="wrap_content"
506506
android:layout_gravity="center"
507507
android:textSize="25sp"
508-
android:text="22"
508+
android:text="24"
509509
android:textColor="#e91e63"
510510
android:layout_height="wrap_content" />
511511
<TextView
@@ -540,7 +540,7 @@
540540
android:layout_height="wrap_content">
541541
<TextView
542542
android:layout_width="wrap_content"
543-
android:text="@\ TBD"
543+
android:text="@\ OPEN AIR THEATRE"
544544
android:textAllCaps="true"
545545
android:textSize="15sp"
546546
android:textStyle="bold"
@@ -556,6 +556,10 @@
556556
</LinearLayout>
557557
</android.support.v7.widget.CardView>
558558

559+
560+
561+
562+
559563
</LinearLayout>
560564

561565
</android.support.v4.widget.NestedScrollView>

app/src/main/res/layout/select_dialog_item.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
android:layout_height="match_parent">
55

66

7-
87
<TextView
8+
android:id="@+id/collegename"
99
android:layout_width="wrap_content"
1010
android:layout_height="wrap_content"
11-
android:textAppearance="?android:attr/textAppearanceMedium"
11+
android:layout_alignParentTop="true"
1212
android:text="SASTRA"
13-
android:id="@+id/collegename"
14-
android:layout_alignParentTop="true" />
13+
android:textAppearance="?android:attr/textAppearanceMedium" />
1514
</RelativeLayout>

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ buildscript {
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.2.1'
11+
classpath 'com.google.gms:google-services:4.0.1'
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

0 commit comments

Comments
 (0)