Android Application Development Tutorial – 33 – Creating a Method

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

35 responses to “Android Application Development Tutorial – 33 – Creating a Method”

  1. Maxi H Avatar

    Can anyone help me please!! i got stuck in 33rd tutorial.. the syntax error on token stated below..
    the error is R.id.tbPassword it said change type of tbPassword to boolean? and the syntax error on token is "case" assert expected.. please help….

    break;{

    case R.id.tbPassword:
    if (passTog.isChecked()){
    input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
    }else{
    input.setInputType(InputType.TYPE_CLASS_TEXT);

  2. Kunal Kumar Avatar

    Really helpful tutorials..
    Thanks man for your time and effort!! 

  3. Murad Sheshani Avatar

    I am having some weird errors.
    its about the method we just created for the most part.

  4. sercan can Avatar

    "void" keyword does not mean its method. void there specifies the return type of the method. if return type is "void" function does not return anything FOR THE MOST PART 

  5. Nehad Hirmiz Avatar

    Thank you for these great tutorials 🙂

  6. Aranjit Daid Avatar

    it would be better if you could explain stuff better. For example, why we don't need the final modifier anymore and why we needed it in the first place to begin with. It seems like your assuming no one here knows any Java so your dumbing down the explanation a lot to the point it makes no sense. Overall however, the videos are helpful.

  7. Roland Talvar Avatar

    I am watching this on 2014.. for the most part

  8. Sharp Avatar

    I think it return 0 though, void

  9. Davy Splash Avatar

    I think he knows that, but if you don't have a programming backround it can be really hard to explain what a method is returning

  10. Ale Kos Avatar

    Captain obvious…He knows this but he doesnt mention that because it doesnt matter for the moment and cause there are totally newbies watching the tutorial he doesnt want to freak them out with all the details. It wouldnt made sense if he was able to do 200 android tutorials without knowing what void is standing for…

  11. DigiGalaxy Avatar

    Ah, I'm incredibly sorry! I didn't read that "-.-" at the end. I thought you were one of those annoying people on YouTube. If that comment was ironic, then I agree with you completely!

  12. Francesco Palmiotto Avatar

    If you didn't understand that because of my bad english(I'm italian), my previous comment was an ironic one guys!
    It's obvious that Travis knows what the return types are and I think everyone who watches these Android tutorials knows about that.

  13. DigiGalaxy Avatar

    Everyone who has actually bothered to watch some programming tutorials knows this…try watch Bucky's C++ Tutorials, he explains it within the first 15 tutorials. Travis just didn't tell us because he's teaching those who don't have any programming background as well as those who do, so he doesn't want to confuse you.

  14. Francesco Palmiotto Avatar

    really? is it a return type? O.O
    I really think Bucky doesn't know that, thanks for your explanation -.-

  15. Brandon Tole Avatar

    I tried to count the "for the most part"s, but I couldnt focus on the lesson. haha

  16. seigeengine Avatar

    … wut?

    I have no idea what you're talking about.
    I have watched pretty much all of Bucky's Java tutorials.
    The only thing I know of with the name prototype is a creation pattern involving cloning.
    That makes no sense, and no one pattern applies in all instances.
    Wut.

  17. Prakhar Srivastav Avatar

    Dude! It is just so much obvious that he knows what it is.
    He is saying it in such a way just because he does not wants to get into the details, you seem to understand java well, but for those who do not it would become very confusing if he gets in so much of the details. Just my 1000$

  18. kastriot dreshaj Avatar

    I am watching this on 2013 ,for the most part !!!!

  19. DemoGamesHD Avatar

    getting errors:
    The value of the local variable btnCmd is not used
    The value of the local variable passTog is not used
    The value of the local variable input is not used
    The value of the local variable display is not used

  20. DemoGamesHD Avatar

    Can someone help me ? when I'm pressing textplay it shows Unfortunately, TestB has stopped. How to solve this problem ? btw before this tutorial it worked fine.

  21. housse51 Avatar

    thats why i agree with him.. for the most part

  22. Neel Mehta Avatar

    he noes but he is trying to make things simple for the people who dont noe this so he is saying so

  23. Jewsus Nippleton Avatar

    Wait… This feels wrong. There's no prototype!! Bucky said we should use prototypes when using java!!

  24. moofymoo Avatar

    for extra credit – look up in interwebs RoboGuice and in activity declare:
    @InjectView(R.id.bResults)
    Button chkCmd;

    and no need for clumsy method that finds all required views.

  25. Sirius Black Avatar

    why it cant run on an AVD with Android4.1 ???
    Please help . .

  26. deadmoney49 Avatar

    From my experience of using methods, I have concluded that void is only a space maker/organizer that can also be used more than once. use void methods only when you'll use MULTIPLE lines of code more than once or you think your class is starting to look cluttered. 🙂

  27. Taki Tam Adam Avatar

    He actually says it – 3:07 "void, again void basically means it's just a method, and it's gonna return… well, let's be… just think that as just being a method FTMP" – so he says what it is, for someone, who isn't at all familiar with programming. That's actually his mission – hell yeah, he could talk exactly about everything, like in this huge 700 pages books, but he tries to save our time and explain in simple words the same problem, what is simillar to reducing those books to 100 pages 🙂

  28. Sea Rothert Avatar

    TheNewBoston / CornBoyz is THE man.

  29. questionman5 Avatar

    So why can't it be final? I know he said it, but it didn't really make sense to me.

  30. Adi Mannari Avatar

    He didn't even call it beconAndEggs.

  31. jacovc1986 Avatar

    it's funny but i already forgot what R.raw is :), i kind of abandoned this tutorial…

  32. SockPuppetDinosaur Avatar

    The R.raw is usually because your "raw" folder is not in the /res/ folder, at least that's how it was for me.

Leave a Reply

Your email address will not be published. Required fields are marked *