Android-Rate
Android-Rate copied to clipboard
setOnClickButtonListener on all buttons
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
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"
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.
@Jacovchak5 AndroidRate release 1.1.5 uses onClickButton(final byte which) instead (byte instead int).