You should do something along the lines of
Intent i = new Intent(Intent.ACTION_ANSWER);
startActivity(i);
The doc for the Intent.ACTION_ANSWER is here, you might want to take a look at it. It seems it doesn't need any extras, so you may be good with this.