Passing an ID from startActivityForResult to onActivityResult?

Ok, I stored the id in a field variable now and that works. Though I'm not so happy about this solution, because it would fail if the user starts two requests in parallel. More sort of a hack.

I have a ListView with a ContextMenu entry, that starts the users photo gallery with startActivityForResult so he can pick an image to associate it with the ListItem. Picking the image works pretty well, and I get the image uri from the Intent passed to onActivityResult. The problem is, I don't get the ListItem's id in onActivityResult.

I tried to attach it to the intent that I pass to startActivityForResult via putExtra, but the intent that I receive in onActivityResult is obviously not the same anymore. Is there some way to pass this information to onActivityResult?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions