Android Dialog Fragments and onActivityResult
问题 I have created an application that presents the user with a dialog fragment with two options: Yes and No . Should the user select 'Yes', the app will call a Zxing barscan application that is installed on the device, and return the result. Now, I have a proof of concept for this working. However this proof of concept uses a simple Activity. Therefore I can achieve this Barscan result using activity, not with Dialog Fragment. The code used in the proof of concept is as follows: public void