I have set listener for the TextView but it is not working.I want to start activity on click of text.I have placed my code can anyone suggest me any changes.
// This is my code
public void onClick(View v) {
// TODO Auto-generated method stub
int i = v.getId();
//String roomName = textView[i].getText().toString();
//Intent intentDeviceOperation = new Intent(v.getContext),DeviceOperation.class);
//startActivity(intentDeviceOperation);
//Intent i1 = new Intent(v.RoomForSpecificUser.this,DeviceOperation.class);
//RoomForSpecificUser.this.startActivityForResult(i1,7);
Intent ii = new Intent();
ii.setClass(RoomForSpecificUser.this, DeviceOperation.class);
}
It is not starting another activity and even not getting any error also.