Added: 5 months ago
From: androidprek
Views: 2,481
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Nice!

  • works great! thanks

  • In my program the App crashes when I write it like this and if I write @Override bevor the onClick(View v) it is an error too. Whats wrong?

  • When I write the same as you, I get this error:

    btn1.setOnClickListener(this);

    (with setOnClickListener underlined)

    Can you help me?

  • @karter61 change "this" to "null"

  • @karter61 yea, it doesn't work; nevermind

  • @karter61 same here...setOnClickListener underlined...

  • what about toggle button?

  • thank you very much gud job man keep it up

  • Instead of making the button pop-up a toast message, how do I make the buttons link to different pages in the layout.

  • much better than the first way. I got stuck with the first way also because the comp I was on could only handle API 7 and down. now I'm on a comp with 4gb of RAM and a real processor. but because no error message comes up in eclipse letting you know that, I was sort of guessing until I got on a better machine. anyway, I'm loving the videos and learning alot. this is a godsend actually. keep em coming!

  • Could you email me I have a few questions.... Northwalesrapper@gmail.com thank you

  • When I write the same as you, I get two errors.

    I get one in this:

    public class HelloWorldActivity extends Activity implements OnClickListener {

    And one in this:

    btn1.setOnClickListener(this);

    Can you help me?

  • Try setting your API level to 10, aka (gingerbread 2.3.3). Also make sure your SDKs and Eclipse are up to date.

  • man i always get errors that you never get

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more