Step 1: define a TAG so we use log filters (can also be any string you choose)
static public String TAG= Activity.class.getName();
Step 2: write [ d=debug, e=error, i=info, v=verbose w=warning
Log.v(TAG, "Message here");
Step 1: define a TAG so we use log filters (can also be any string you choose)
static public String TAG= Activity.class.getName();
Step 2: write [ d=debug, e=error, i=info, v=verbose w=warning
Log.v(TAG, "Message here");
Button bXMinus = (Button) findViewById(R.id.btnXMinus);
bXMinus.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_DOWN) {
sendMessage("jog x -1");
} else if (event.getAction() == MotionEvent.ACTION_UP) {
sendMessage("jog x 0");
}
return true;
}
});