Android-Rate icon indicating copy to clipboard operation
Android-Rate copied to clipboard

setOnClickButtonListener on all buttons

Open AJacovchak opened this issue 9 years ago • 3 comments

Hey,

How can I use setOnClickButtonListener on all of this feature buttons (ok, cancel)? I want to know how many users eventually went to the store to rate the app and how many canceled.

Thanks, Asaf

AJacovchak avatar Oct 26 '16 06:10 AJacovchak

Just found out that on the onClickButton(int which), the "which" represent a different integer value for each of the buttons. -1 for "OK" -2 for "NO"

AJacovchak avatar Oct 26 '16 11:10 AJacovchak

The value passed to onClickButton(int) mirrors the general DialogInterface.OnClickListener you would use for other dialogs. Rather than hardcoding the values, you should refer to the constants in that class instead.

mannodermaus avatar Oct 26 '16 12:10 mannodermaus

@Jacovchak5 AndroidRate release 1.1.5 uses onClickButton(final byte which) instead (byte instead int).

AlexanderLS avatar Apr 20 '18 18:04 AlexanderLS