注釈を少し付け加えました

This commit is contained in:
磯野 2024-01-12 12:17:43 +09:00
parent a81a4c07db
commit 87c5af9f01

View File

@ -67,7 +67,9 @@ public class MainActivity extends AppCompatActivity {
//通知のやつ //通知のやつ
public void notifyMain() { public void notifyMain() {
//通知をする際に起動するバイブレーション
((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(1000); ((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(1000);
//通知の詳細設定的な奴
NotificationCompat.Builder builder = new NotificationCompat NotificationCompat.Builder builder = new NotificationCompat
.Builder(this, "CHANNEL_ID") .Builder(this, "CHANNEL_ID")
.setSmallIcon(android.R.drawable.ic_menu_info_details) .setSmallIcon(android.R.drawable.ic_menu_info_details)