[android-developers] Re: EditTexts and Handles

2010-01-27 Thread Aaron Rudolph
Okay, I understand that, but in order to use that function, I need a
handle to the dynamically created EditText. How do I get that handle?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: EditTexts and Handles

2010-01-27 Thread TreKing
On Wed, Jan 27, 2010 at 2:04 PM, Aaron Rudolph aanrudol...@gmail.comwrote:

 Okay, I understand that, but in order to use that function, I need a
 handle to the dynamically created EditText. How do I get that handle?


EditText et = new EditText(...);

...

et.getText();

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditTexts and Handles

2010-01-27 Thread Aaron Rudolph
Can that value 'et' be stored in a global array and referenced later?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: EditTexts and Handles

2010-01-27 Thread skyman
Yes it should work, but I think that this global array should be
accesed only from Activity where the EditTexts were created, but I'm
not shure.

On 27 Sty, 21:56, Aaron Rudolph aanrudol...@gmail.com wrote:
 Can that value 'et' be stored in a global array and referenced later?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: EditTexts and Handles

2010-01-27 Thread Aaron Rudolph
Yeah...that's the problem...

I'm accessing my equivalent of 'et' from another function. It works
fine when I access the variable from the function in which the
EditText was created, but when I access it from a button callback, it
gives me an error. Don't know how to get the debug info.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: EditTexts and Handles

2010-01-27 Thread TreKing
On Wed, Jan 27, 2010 at 3:14 PM, Aaron Rudolph aanrudol...@gmail.comwrote:

 I'm accessing my equivalent of 'et' from another function. It works
 fine when I access the variable from the function in which the
 EditText was created, but when I access it from a button callback, it
 gives me an error. Don't know how to get the debug info.


You really need to provide more information about what your problem is if
you want help.
What's the error? What does your code look like?
Without more information I could suggest 101 things that may not be
applicable in this case.

And debug information is available in the LogCat window (assuming you're
using Eclise).

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditTexts and Handles

2010-01-27 Thread Aaron Rudolph
Thanks. Sorry for bothering you. I think it was an XML error. D'oh.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en