Cómo evitar que se eliminen las aplicaciones de Android
R.drawable.my_service_icon,
"my_service_name",
System.currentTimeMillis());
PendingIntent p_ intent = PendingIntent.getActivity(this, 0,
new Intent(this, MyMainActivity.class), 0);
notification.setLatestEventInfo(this, "MyServiceNotification, "¡MyServiceNotification se está ejecutando!", p_intent);
Log.d(TAG, String.format("notificación = s", notificación)
startForeground(0x1982, notificación); // ID de notificación: 0x1982, puede nombrarlo como desee; quiero.