Android - how can an Activity get user entered text from a Dialog?

It sounds like you want to send a Message to a Handler. Use obtainMessage() to get the Message object, Then send the Message to the Handler via its message queue.

These have all been great suggestions, but this one is the one that got me going down the right path to solve my issue. I guess it turns out that its just not as easy to get the data from a dialog as I hoped. I'll post code from my final solution.

Thank you everyone – cbursk Dec 9 '10 at 23:00.

Save stuff you want to save in onClickListener of your Dialog. Use dialog.findViewById() to find your text box, save the text somewhere (or use Handler) and then in Activity retrieve the saved text.

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