android - OnActivityResult doesn't receive data -


i started in app activity

var recordintent= new intent(recognizerintent.actionrecognizespeech); startactivityforresult(recordintent, (int)resultactivitycodes.speechresult); 

and have stoprecord function

    void stoprecord()      {             setresult(result.ok,recordintent);              finishactivity((int)resultactivitycodes.speechresult);      } 

after execute stoprecord() function called onactivityresult(int requestcode, result resultcode, intent data)

why data has been null in onactivityresult?

how stop correctly activity variable "data" not null

you need use setresult(int, intent) method in started activity before destroyed. second parameter data parameter of onactivityresult() method.


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -