It took me a day and I always fell into this trap. Android studio is 
showing the parameters for onActivityResult is onActivityResult(int result, 
int d, Intent intent) where d is AKA request. 
That's what Android studio advertises and my gullibility over this one is 
insane. I am fixing bug just because I am confused, heck if this a 
commercial airplane, I already crashed it on lift off. Here is the question 
<http://stackoverflow.com/questions/29972183/resultcode-is-always-0-and-request-is-always-1-activity-onactivityresult>
 
I posted last year.

I reviewed the docs, and it clearly states its onActivityResult(int 
request, int result, Intent intent). I always make this mistake and it is 
costing me time to remember this scenario and fixing it. Maybe next time on 
my next project this won't happen again. I hope someone can fix this or 
maybe it is already fixed? I am still using Android Studio v1.4. Maybe I 
could update it automagically or I can edit it manually but how and where? 
 I had this problem since Eclipse. 

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4d2f72c5-0eaf-424f-b25d-4dc8185d8300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to