fix: get the app building
- settings.gradle.kts: add dependencyResolutionManagement repositories so app deps resolve - activity_main.xml: move help text with raw quotes to a string resource (commands_help) - RingService.kt: import NotificationChannel and PendingIntent - gradle wrapper: add gradlew + gradle-wrapper.jar, regenerate properties - add .gitignore for build outputs and local.properties
This commit is contained in:
parent
220dd85ed3
commit
597a189637
9 changed files with 363 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
|||
package com.example.lostmyphone
|
||||
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.app.Service
|
||||
import androidx.core.app.NotificationCompat
|
||||
import android.content.ContentUris
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Commands: send \"RING_NOW\" to this device for the default ringtone, or \"PLAY_SONG <Name>\" to play a matching local track."
|
||||
android:text="@string/commands_help"
|
||||
android:textSize="13sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@
|
|||
|
||||
<string name="status_help">Status: %1$s</string>
|
||||
<string name="dnd_explanation">Enabling Do Not Disturb Access lets the app cut through DND to play the ring. It is only ever used after a valid SMS trigger or a manual test.</string>
|
||||
|
||||
<string name="commands_help">Commands: send "RING_NOW" to this device for the default ringtone, or "PLAY_SONG <Name>" to play a matching local track.</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue