public class Temporary_contact extends ActionBarActivity implements OnClickListener { private int mYear, mMonth, mDay, mHour, mMinute; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.temporary_reg); Contact_db_handle db = new Contact_db_handle(this); Button save_contacts=(Button)findViewById(R.id.save); TextView settime=(TextView)findViewById(R.id.Set_time); TextView setdate=(TextView)findViewById(R.id.Set_date); setdate.setOnClickListener(this); settime.setOnClickListener(this); save_contacts.setOnClickListener(this); } public void onClick(View v) { if(v==settime)//error on this line { } }
if(v==settime)
if(v.getId() == settime.getId())
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)