I want to dial a number after I have answered a call, normally done by the in-call dialpad.
I tried the following, but that starts dialing a new call instead (so does ACTION_VIEW).
Intent dial = new Intent(Intent.ACTION_DIAL);
dial.setData(Uri.parse("tel:9"));
startActivity(dial);
My guess is that "tel:" triggers a new dialing sequence. What I probably need is to show the in-call dialpad and simulate key strokes.
Anyone?
Edit: I found this question Starting the InCallScreen activity which makes me think that I need to just send a keydown event to 'com.android.phone.InCallScreen', but I am not sure how to do that. Also this is a directly related issue that has been (and still is) open for years: http://code.google.com/p/android/issues/detail?id=1428