Android Programming Tutorials

(Romina) #1
Getting More Active

type="sit_down";
break;
case R.id.take_out:
type="take_out";
break;
case R.id.delivery:
type="delivery";
break;
}

if (restaurantId==null) {
helper.insert(name.getText().toString(),
address.getText().toString(), type,
notes.getText().toString());
}
else {
helper.update(restaurantId, name.getText().toString(),
address.getText().toString(), type,
notes.getText().toString());
}

finish();
}
};

At this point, you should be able to recompile and reinstall the application.


When you first bring up the application, it will no longer show the tabs:


120
Free download pdf