Code example for CheckBox

Methods: isChecked

0
			@Override 
			public void onClick(View v) {
				String review = reviewEdit.getText().toString();
				 
				review = review + "\nScript name:" +Sname +"\n=====================\n" + x;
				if (mFacebookCb.isChecked()) postToFacebook(review);
			} 
		}); 
	} 
	 
	private void postToFacebook(String review) {	
		mProgress.setMessage("Posting ...");
		mProgress.show();
		 
		AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook);
		 
		Bundle params = new Bundle();
    		 
		params.putString("message", review );
		params.putString("name", "Ruboto");
		params.putString("caption", "ruboto.org");