TestServiceの全体的なリファクタリング #28
|  | @ -226,7 +226,6 @@ public class TestService extends Service { | ||||||
|                 .setPriority(NotificationCompat.PRIORITY_HIGH) // プライオリティを高く設定 |                 .setPriority(NotificationCompat.PRIORITY_HIGH) // プライオリティを高く設定 | ||||||
|                 .setVisibility(NotificationCompat.VISIBILITY_PUBLIC); // ロック画面に表示する |                 .setVisibility(NotificationCompat.VISIBILITY_PUBLIC); // ロック画面に表示する | ||||||
| 
 | 
 | ||||||
|         // 通知チャンネルの作成 |  | ||||||
|         NotificationManager notificationManager = context.getSystemService(NotificationManager.class); |         NotificationManager notificationManager = context.getSystemService(NotificationManager.class); | ||||||
| 
 | 
 | ||||||
|         notificationManager.notify(R.string.app_name, builder.build());//通知の表示 |         notificationManager.notify(R.string.app_name, builder.build());//通知の表示 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user