title: how to get RatingBar value
body: <p>how to read and display rating bar value</p>
  
  <pre><code>i[0] // should be selected value
  
  private OnClickListener onclickbutton1 = new OnClickListener() {
      public void onClick(View v) {
          int[] i = new int[]{ R.id.mRatingBar};
  
          statusMessage.setText("value is " + i[0]);
      }
  };
  </code></pre>
  
  <p>// this works</p>
  
  <pre><code>private OnClickListener onclickbutton1 = new OnClickListener() {
      public void onClick(View v) {
          RatingBar mBar = (RatingBar) findViewById(R.id.mRatingBar);
  
          float[] i = new float[]{ mBar.getRating() };
  
          statusMessage.setText("value is.. " + i[0]);
      }
  };
  </code></pre>