N
N
NickNamee2016-12-21 12:33:43
Android
NickNamee, 2016-12-21 12:33:43

And how can you slip your unique icon?

Good day!
I'm trying to display the notification ..
Default icons slips, shows normally.
Notification.Builder builder = new Notification.Builder(context.getApplicationContext());
builder.setSmallIcon(android.R.drawable.btn_star);
I'm trying to put mine in drawable and from there show
builder.setSmallIcon(net.agasper.unitynotification.R.drawable.ic_stat_notification_google);
Does not swear, does not give any errors. As a result, I see a white square.
Has anyone seen a good example? Polinternet dug up, did not find an intelligible answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2016-12-28
@panarama360

Try to Clear the project and remove the app from the device, then build the app again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question