Code example for RatingBar

Methods: getRating

0
			 
			if(isPlat) {
				plat.addAvis(user.getEmail(), comm, (int)(ratingBar.getRating()*2));
			} 
			else { 
				resto.addAvis(user.getEmail(), comm, (int)(ratingBar.getRating()*2));
			} 
			 
			to_close.finish();
		} 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java