v has class of TextView? If so:

public void onClick(View v)
{
    String xxxxx = "Hello";
    ((TextView)v).setText(xxxxx);
}

Best regards
Denis A Gladky

------------------
Piggybank Software
http://sites.google.com/site/piggybanksoftwarehomepage/


On Oct 26, 12:50 pm, Regish Ben <[email protected]> wrote:
> Hi I m new to android application
>
> I m Using a String Variable.
>
> public void onClick(View v) {
>
>                  String xxxxx = "Hello";
>
>      }
>
> I want to Print the xxxxx value in Textview...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to