How Can I Pass A Value To A Android Dialog?
I have a dialog in which I am trying to pass a float to, like this: public void rateDialog(View v){ // custom dialog AlertDialog.Builder builder = new AlertDialog.
Solution 1:
You can declare it as final:
publicvoidrateDialog(View v){
// custom dialogfinalFloatvalue=1;
}
and use it in the dialog.
Post a Comment for "How Can I Pass A Value To A Android Dialog?"