jeudi 7 mai 2015

Can a non-calling Activity return result to the initial Activity via Intent?

The flow is like this:

A calls B (via startActivityForResult) which loads set of images. After a user pick one or more images, then B calls C where user can further sort images. After this step, C calls A calling setResult(someResult, someIntent).

What happens in A is that I receive the correct request code, result code, but null intent.

Does A expect to get an intent from the class it called on the first place?

I thought it does and I passed this intent from B to C, but in C I had to dispose of that intent as B has to pass its own intent to A.

Aucun commentaire:

Enregistrer un commentaire