Android StartActivityForResult for reusable code - any other ways of doing this? (regarding Twitter)?

You could use createPendingResult() to pass an object in an Intent extra that can be used later to trigger onActivityResult() Or, you can do a private "broadcast", specifying an action and package to restrict the scope to only go back to the originating app. Here is a sample client and remote service that demonstrate the use of these two -- in your case, you wouldn't be using them from a service, of course, but it's the only sample code I have handy. One of these should, in principle, let you get your data back to the original activity.

From there, it is a matter of finish() ing everything between where you are and that activity.

Is there, for example, a way of sending a "class" of yourself in an intent... You could use createPendingResult() to pass an object in an Intent extra that can be used later to trigger onActivityResult(). Or, you can do a private "broadcast", specifying an action and package to restrict the scope to only go back to the originating app. Here is a sample client and remote service that demonstrate the use of these two -- in your case, you wouldn't be using them from a service, of course, but it's the only sample code I have handy.

One of these should, in principle, let you get your data back to the original activity. From there, it is a matter of finish()-ing everything between where you are and that activity.

Thanks for the help...never even new createPendingResult() existed. Will give this a shot and see how it goes when time permits. – The Salt Sep 9 '10 at 9:58.

Possible alternative is to reuse the activity by setting flags for the intents. Details here: caguilartech.blogspot.com/2010/07/androi....

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