Android - Request code in onCreate -
can access requestcode activity received in oncreate() method?
i'd need understand if "new" or "modify" operation.
let's create activity a :
the activity lifecycle goes : a.oncreate() -> a.onstart() -> a.onresume()
then call activity b activity a. want activity b send result.
the activity lifecycle goes : a.onpause -> b.oncreate ->b.onstart()-> b.onresume()->a.onstop()
once b has done job, send result , destroyed : b.ondestroy()->a.onresume()-> a.onactivityresultback()
my whole point activity a not go oncreate
! unless have attribute requestcode in activitya.java file, can not access in oncreate
method.
Comments
Post a Comment