The name from your android:id attribute does not exist in the APK.
However, you could use the android:tag attribute to associate a String
with the EditText that you later retrieve via getTag().

On Mon, Jan 31, 2011 at 10:49 AM, Sebas <[email protected]> wrote:
> Hi, I have a form with many EditTexts, and when I press a certain
> button, I need to retrieve all these controls and put them into a
> HashMap so the key is the name (key1 int the following code)
>
> <EditText android:id="@+id/key1"
>        style="@style/keys" />
>
> and the value, whatever text the user enters.
>
> My question is, how can I retrieve the name of the EditText for the
> Hashmap's keys ? getId() returns a number.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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

Reply via email to