- Implemented travel alerts for notifying about classes in another town the evening before. - Added room alerts for notifying about room changes on the morning of the class. - Introduced live lesson notifications to provide ongoing updates during classes. - Created launcher shortcuts for quick access to today's schedule, weekly overview, search functionality, and adding new tasks. - Updated settings to manage new notification preferences and integrated them into the user interface. - Enhanced notification channels for better organization and user experience.
94 lines
3.7 KiB
XML
94 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<!-- Optional: the student can allow exact reminder times in system settings. -->
|
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
|
<!-- The lesson under way as a Live Update on Android 16 (a promoted ongoing notification). -->
|
|
<uses-permission android:name="android.permission.POST_PROMOTED_NOTIFICATIONS" />
|
|
|
|
<application
|
|
android:name=".ScheduleApp"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:networkSecurityConfig="@xml/network_security_config"
|
|
android:enableOnBackInvokedCallback="true"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.PsuSchedule">
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTop"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<!-- Long press on the icon: today, the week, room search, a new task. -->
|
|
<meta-data
|
|
android:name="android.app.shortcuts"
|
|
android:resource="@xml/shortcuts" />
|
|
</activity>
|
|
|
|
<receiver
|
|
android:name=".widget.TodayWidgetReceiver"
|
|
android:exported="true"
|
|
android:label="@string/widget_name">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/today_widget_info" />
|
|
</receiver>
|
|
|
|
<receiver
|
|
android:name=".widget.NextLessonWidgetReceiver"
|
|
android:exported="true"
|
|
android:label="@string/next_widget_name">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/next_widget_info" />
|
|
</receiver>
|
|
|
|
<service
|
|
android:name=".tile.LessonTileService"
|
|
android:exported="true"
|
|
android:icon="@drawable/ic_tile_lesson"
|
|
android:label="@string/tile_name"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<receiver
|
|
android:name=".notify.ReminderReceiver"
|
|
android:exported="false" />
|
|
|
|
<receiver
|
|
android:name=".notify.DayAlertReceiver"
|
|
android:exported="false" />
|
|
|
|
<receiver
|
|
android:name=".notify.LiveLessonReceiver"
|
|
android:exported="false" />
|
|
|
|
<receiver
|
|
android:name=".notify.BootReceiver"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
</manifest>
|