coding the checkbox

Put your problem here if it does not fit any of the other categories.

coding the checkbox

Postby droidinize » Fri Aug 03, 2012 5:18 pm

Hi im new in android, just wandering why i get the force close message whener i use this method..

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  pigment.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  2.                 @Override
  3.                 public void onCheckedChanged(CompoundButton buttonView,
  4.                                 boolean isChecked) {
  5.                         // TODO Auto-generated method stub
  6.        
  7.           if(buttonView.isChecked())
  8.           {
  9.           total.setText("ok");
  10.           }
  11.           else;
  12.           {
  13.           Toast.makeText(getApplicationContext(), "CANCEL", Toast.LENGTH_LONG).show();
  14.           }
  15.           }
  16.           });
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
droidinize
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jul 25, 2012 3:27 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests