Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: button android

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default button android

    hi All

    i can't realize the action of button


    public void Afficher(View view)
    {
    String ch = text.getText().toString();
    Toast.makeText(getApplicationContext(), ch, BIND_AUTO_CREATE).show();

    }

    can you help me please


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: button android

    Do you get any error messages?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: button android

    no

  4. #4
    Junior Member
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: button android

    I have no idea about it.

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: button android

    Use setOnClickListener(new ClickListener) and implement onClick

  6. #6
    Junior Member
    Join Date
    Dec 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: button android

    thank you

Similar Threads

  1. File in android
    By jessCPP in forum Android Development
    Replies: 1
    Last Post: October 15th, 2012, 03:40 PM
  2. What Android is not?
    By John Farrell in forum Android Development
    Replies: 1
    Last Post: September 25th, 2012, 03:30 AM
  3. Using resources on Android?
    By Gravity Games in forum Android Development
    Replies: 0
    Last Post: August 18th, 2012, 12:08 PM
  4. Events in Android
    By Nesh108 in forum Android Development
    Replies: 3
    Last Post: February 29th, 2012, 10:49 AM
  5. android button tasks
    By bdtuhin007 in forum Android Development
    Replies: 0
    Last Post: January 30th, 2012, 09:39 PM