package com.example.homwork2; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.CheckBox; import android.widget.TextView; public class MainActivity extends ActionBarActivity implements OnClickListener { CheckBox ch1, ch2, ch3; TextView tv1; String a = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ch1 = (CheckBox) findViewById(R.id.ch1); ch2 = (CheckBox) findViewById(R.id.ch2); ch3 = (CheckBox) findViewById(R.id.ch3); tv1 = (TextView) findViewById(R.id.selected); } @Override public void onClick(View arg0) { if (ch1.isChecked() == true) { a = "JQureey Mobile"; } else { a = ""; } if(ch2.isChecked()==true){ a=a+"HTMLS"; } else{ a=a+"";} if(ch3.isChecked()==true) { a=a+"Cloud"; } else{ a=a+"";} tv1.setText("관심분야:"+a); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } } 뭐가 문제일까요... 제대로 한거같은데 ㅠ 실행하면 제대로 실행은 되는데 체크박스에 있는거 체크해도 텍스트뷰 상자에는 아무것도 안나타나고 계속 빈칸이네요..