TestServiceの全体的なリファクタリング #28
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user