[android-beginners] Problem with Custom Dialog

2010-01-04 Thread Lenea
Hello, everyone.
I've got an application in which a button triggers a custom dialog.
In the custom dialog i have an EditText.
I want to collect data from the EditText and set the text of a
TextView to that data.
The problem is, the TextView is located in my main Activity(the one
which triggered the custom dialog)
How do I do that?


Cheers,
Lenea

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with Custom Dialog

2010-01-04 Thread Justin Anderson
There are several methods available for dealing with dialogs within an
activity...  Have a look at onCreateDialog(), onPrepareDialog(),
showDialog(), and removeDialog():

http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int%29

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sat, Jan 2, 2010 at 6:55 AM, Lenea danmo...@gmail.com wrote:

 Hello, everyone.
 I've got an application in which a button triggers a custom dialog.
 In the custom dialog i have an EditText.
 I want to collect data from the EditText and set the text of a
 TextView to that data.
 The problem is, the TextView is located in my main Activity(the one
 which triggered the custom dialog)
 How do I do that?


 Cheers,
 Lenea

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with Custom Dialog

2010-01-04 Thread Kevin Duffey
If the dialog you open is to return a value, I forget the call.. still
learning myself.. I think it's like onWaitForDialog or something. You can
have it return a response to the activity that displayed it, which would
probably be the same activity you want to update the textview with. Just
update the textview, possibly in a thread to update the UI with the
response.

On Mon, Jan 4, 2010 at 10:29 PM, Justin Anderson janderson@gmail.comwrote:

 There are several methods available for dealing with dialogs within an
 activity...  Have a look at onCreateDialog(), onPrepareDialog(),
 showDialog(), and removeDialog():


 http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int%29

 Thanks,
 Justin


 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Sat, Jan 2, 2010 at 6:55 AM, Lenea danmo...@gmail.com wrote:

 Hello, everyone.
 I've got an application in which a button triggers a custom dialog.
 In the custom dialog i have an EditText.
 I want to collect data from the EditText and set the text of a
 TextView to that data.
 The problem is, the TextView is located in my main Activity(the one
 which triggered the custom dialog)
 How do I do that?


 Cheers,
 Lenea

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en