In my google voice recognition, I'm trying to add commands. The commands should be in this piece of code:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) {
// add commands
}
}
I am guessing it would be a else if statement but I'm confused on how to start it.
if() {
// put code here
}
But what should I put in the if
and the put code here
?