Issues with start activity for result

Posted by rodkarom on Stack Overflow See other posts from Stack Overflow or by rodkarom
Published on 2012-10-29T10:57:51Z Indexed on 2012/10/29 11:00 UTC
Read the original article Hit count: 156

Filed under:
|

I have written an Activity using Theme.Holo.Dialog so that it works as an AlertDialog as a login/password notice. I've started this activity with startActivityForResult(...) using a request code I defined. The thing is, whenever I start the activity ´onActivityResult(...)´ is triggered immediately, the buttons get loaded and everything, but once I press them, even though I know the Activity is working because login does happen, there is no result sent back to the first Activity and I am calling setResult(...) and finish() after the buttons are pressed. Thanks in advance, first time using startActivityForResult so I'm sure I must be missing something.

© Stack Overflow or respective owner

Related posts about android

Related posts about activity