- Get link
- X
- Other Apps
Android Notification show public static void shownotification ( Context context , int id , String title , String Content , Intent intent ) { PendingIntent pendingIntent= null; if ( intent != null ) { pendingIntent= PendingIntent . getActivities ( context , id , new Intent[]{ intent } , PendingIntent . FLAG_UPDATE_CURRENT ) ; String NOTIIFCATION_CHANNEL_ID = "UClone android" ; NotificationManager notificationManager = ( NotificationManager ) context .getSystemService( Context . NOTIFICATION_SERVICE ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . O ) { NotificationChannel notificationChannel = new NotificationChannel( NOTIIFCATION_CHANNEL_ID , "" , NotificationManager . IMPORTANCE_HIGH ) ; notificationChannel .setDescription( "" ) ; notificationChannel .enableLights( true ) ; notificationChannel .setLightColor( Color . RED ) ; no...