RT,如何获取startActivityForResult方法跳转到的子activity的键盘事件
我的startActivityForResult方法中的Intent是实现语音识别的....既
mIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
startActivityForResult(mIntent, VOICE_RECOGNITION_REQUEST_CODE);
该子activity应该是android内部自动生成的吧....
现在问题是要获取弹出的子activity的键盘事件,不知道我的问题描述清楚了吗....求解!谢.
public static final String ACTION_RECOGNIZE_SPEECH
Since: API Level 3
Starts an activity that will prompt the user for speech and sends it through a speech recognizer. The results will be returned via activity results (in onActivityResult(int, int, Intent), if you start the intent using startActivityForResult(Intent, int)), or forwarded via a PendingIntent if one is provided.
Starting this intent with just startActivity(Intent) is not supported. You must either use startActivityForResult(Intent, int), or provide a PendingIntent, to receive recognition results.