android - Use a drawable in rate app dialog -


i have dialog pop rate app , on dialog android icon.

what want able chose drawable instead of system icon have app icon in place! first time in using rate app dialog apologies if basic question me tough one, think should need 1 section of code icon if require full class can post that.

 builder.setmessage(message)                 .settitle("rate " + app_title)                 .seticon(context.getapplicationinfo().icon)                 .setcancelable(false) 

you can pass resource id of app icon drawable, example:

builder.setmessage(message)             .settitle("rate " + app_title)             .seticon(r.drawable.app_logo)             .setcancelable(false); 

in case app_logo can drawable having app icon.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -