Код: Выделить всё
public void showNotification(Beacon beacon) {
Resources r = getResources();
int random = (int)System.currentTimeMillis();
Notification notification = new NotificationCompat.Builder(this)
.setSmallIcon(android.R.drawable.ic_popup_reminder)
.setContentTitle("Beacons Found")
.setContentText(beacon.getID().toString())
.setVisibility(0) // allow notification to appear on locked screen
.setAutoCancel(true)
.build();
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(random, notification);
}
Код: Выделить всё
import android.support.v4.app.NotificationManagerCompat;
Что мне делать? Я уже установил SDK репозитория поддержки Android и имею файл "android-support-v4.jar" в папке libs проекта
Подробнее здесь: https://stackoverflow.com/questions/432 ... agercompat
Мобильная версия