TestServiceの全体的なリファクタリング #28

Merged
asura146 merged 73 commits from improve/refactor_service into main 2024-07-12 02:17:26 +00:00
Showing only changes of commit 92f3cf1e0f - Show all commits

View File

@ -78,8 +78,8 @@ public class TestService extends Service {
Intent notificationIntent = new Intent(this, MainActivity.class); Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE);
Notification notification = new NotificationCompat.Builder(this, BACKGROUND_CHANNEL_ID) Notification notification = new NotificationCompat.Builder(this, BACKGROUND_CHANNEL_ID)
.setContentTitle("Test Service Running") .setContentTitle("ChildGuardバックグラウンドサービス")
.setContentText("This service is running in the foreground") .setContentText("接続/通報監視サービスがバックグラウンドで実行されています")
.setSmallIcon(android.R.drawable.ic_menu_info_details) .setSmallIcon(android.R.drawable.ic_menu_info_details)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
.build(); .build();