last day (15 days later) » 

4:41 PM
1
A: rating bar is not showing in alert dialog

Charukapublic class homeActivity extends AppCompatActivity { private float rateValue; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); AlertDialog.Builder mBuild...

 
@Nilesh Indalkar did you able to make it right?
 
yup its working as i want to
 
@Nilesh Indalkar okayiiss good luck
 
and one more thing after clicking on submit i want to close dialog box i knwo the dismiss(); but where should i use this?
 
inside btnSubmit click after whatever your process that you do inside that,at the moment below the toast will be good
 
4:41 PM
i have tried but its showing error cannot resolve the symbol
 
private AlertDialog dialog; keep global one
 
ok wait let me do this
 
like i did for rateValue
then this line AlertDialog dialog=mBuild.create(); should be dialog=mBuild.create();
since you are referring to global one
 
ok thanks once again its worked :)
 
cannot resolve the symbol means there is no dialog variable to access withing inside of that block
making a variable global is one way that you can access that with in that class
read about local and global variables and how to access local variables inside other methods
@NileshIndalkar good luck!
 

  last day (15 days later) »