Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question