Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (135)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • Comment removed

  • String Cheese :3

  • I followed the tutorials three times but every time my app crashed after the splash screen. Then I switched computer from Ubuntu to XP and tryed again. This time it worked, so maybe there is a bug in the Linux version of Eclipse so that the R files arent properly generated?

  • I like your tutorials. For the most part!

  • How old is Travis?

  • If startingPoint dosent star check that you dosent have a space after travis :D

    Class ourClass = Class.forName("com.thenewbosto­n.travis." + cheese);

  • @TheFlashingz there is no spase after travis it is the same as u have ( Class ourClass = Class.forName("com.thenewbosto­­n.travis." + cheese);)

  • @rob2701ful Ok have you checked all is correct in the manifest?

  • For those whore are facing problem of the "startingPoint" tab that doesn't seem to be working.

    Go back to the previous tutorial # 20 and look at the minute 2:50

    You will find the solution, just open your eyes, it is not the name in the MANIFEST, it is the name of the CLASS itself. Don't get confused.

  • my menu wont do any thing what area is that in?

  • As we are not populating anything through XML here, how can one set a TextView or something similar above the ListView?

    Sorry if this a lame question.

  • perfect!

  • For the most part - keep typing while explain. This tutorial is driving too long........

  • "for the most part"

  • Make sure "startingpoint" is spelt correctly to match it with the same way you named your class.

    for me, i had to switch "startingPoint" to "startingpoint" with a lower case p.

    Also Make sure you have the period at the end of "Class.forName("com.thenewbost­o­n.travis."

  • Comment removed

  • I`v got the same "not doing anything button" problem and i fixed it by changing the code line: Class ourClass = Class.forName("com.thenewbosto­n.travis." +cheese);

  • So, I just spent two hours trying to figure out why my list wouldn't do anything... it was as simple as using "ButtonCounter" not buttonCounter... wow..SMH

  • @Override protected void onListItemClick(ListView l, View v, int position, long id) { // TODO Auto-generated method stub super.onListItemClick(l, v, position, id); switch(position) { case 0: Intent ourIntent = new Intent(Menu.this, MynewprojActivity.class); startActivity(ourIntent); break; } }

    }

  • after six hours of the button not doing anything and reading through all the comments for a solution, i have found it:

    i included 'android' in the Class.forName

    In Travis's example (which somehow works for him) he has this line of code:

    Class ourClass = Class.forName("com.thenewbosto­n.travis.startingPoint");

    // i changed this line of code to:

    Class ourClass = Class.forName("com.thenewbosto­n.travis.android.startingPoint­");

    and it works for me! F**K !

  • Comment removed

  • I ran the code with the warning "Class is a raw type..." and it works. At first it crashed, but after double checking everything, I found the problems came from the manifest.xml.

  • the names you choose for your variables are destructive for new programmers. vars must be related to their content and not called "cheese". this is a very bad habit people might stick to

  • Comment removed

  • Why was cheese necessary? At the end of the class intent, just do classes[position].

  • Hi all, i hope someone can help me out. its driving me nuts!

    I wish to use my own Listview (using listview through xml) but cant seem to figure out what it is im doing wrong.

    I changed the line:

    android.R.layout.simple_list_i­tem_1, classes));

    to

    R.layout.listview, classes));

    please urgent help!

    many thanks :D

  • Why is the last part of the action name in the manifest file always in ALL CAPS?

  • where does e.printStackTrace() print the to?

  • Travis, this is awesome! am an android enthusiast and your tutorials are a fun way to learn android programming. Guys, he's not calling an Intent Action in the ourClass variable, instead he's calling the class name which is .startingPoint. If he was calling the intent action like he did for the .MENU, it would have been .STARTINGPOINT.

  • @shreddersat sadly, didnt work :\

    any suggestions?

  • Good variable names are essential to development. String cheese, while funny, is not a good variable name. In this instance, I used selectedClass as my variable name.

  • its not gonna work or its not gonna work o im sorry i said that twice so its basically just not gonna work

  • haha I get it String cheese. Hilarious.

  • "Unfortunately **** has stopped" - Just after the splash screen. 3rd time Ive started again :( - Ive read the comments here, but still cant work it out.. Anyone got a solution for this? :(

  • @CorporateSilverback You just keep on trying till you run out of cake! You know the name of my project? Its "fourth", you guessed it right, its my fourth try.

  • @supersushi269 thanks for the "helpful" reply

  • wow the best tutorial, just wonder how much you have made from making android app

  • Nice.

  • New drinking game!

    Drink whenever Travis says "For the most part"!

  • what are "airs" and why are you so worried about "getting them?"

  • one tip that made mine work after hours of debugging. When entering the forName path, use the whole package name and with a .(dot) at the end. I had started on bucky's android tutorial, so my package name was not the same as Travis'. good luck with this guys :P btw, still cant get sound if anyone knows the trick :)

  • @laba1987 if you can't remember the code off your head, go back to your splash. copy the Mediaplayer and oursong things and just copy them into the menu(dont include ourSong release). if you want a song different than the one in Splash to play, just add a new song in the raw folder and use that one.

  • @ytdogspoop5 or simply take out the ourSong release in splash

  • @laba1987 your reply is not helpful, please be more specific. Thanks.

  • An internal error occurred during: "Launching testProject".

    java.lang.NullPointerException

    my app can't startup please help :S

  • for ppl facing prbl with starting point not doing anything...check out if u have wriiten same thing in al d place "startingPoint" .....by mistake i hav put a space and it dint work for me so check it out

  • If you get problems opening the StartingPoint tab(or whatever you called it). Try delete + cheese so it will only be

    Class ourClass = Class.forName("firstapp.kristo­ffer.startingPoint")

    Hope that helps :)

  • If your still struggling with opening the StartingPoint tab do what i did and i think it helps. delete everything you created after the 16th tutorial and do it again. try to name the Menu class something else other than Menu. this method helped me and hopefully it will help you because i was ready to give up on these tutorials.

  • Is this an Android tutorial or a JAVA tutorial ???? Just skip the java explaination no one would want to develop apps for android without some OOP programming background !!!

  • need help?

    I can run my project only once?? everytime I have to reopen eclipse to run the project? do anybody has any clue about this?

    2. In mainfest, under the application tab, is

    it is showing android:icon ="@drawable/ic_launcher" it should be /icon .. right? if i m changing to that it showing me error.

    plz help me out asap. thanks

  • it gives me a error at

    Intent ourIntent = new Intent(Menu.this, ourClass);

  • Do you have "import android.content.Intent" in your import list near the top?

    If not, hover over Intent, then when the popup appears click on "Import 'Intent' (android.content)" to add it to your import list.

  • Whenever I run the app my console says "No launcher activity found

    The launch will only sync the application on the device" Then the app force closes

    help?

  • Make sure you move the String cheese = classes[position]; under the super.onListItemClick! That helped me a bunch.

    For the most part.

  • People with the force quit problem:

    Make sure the name is the same in the Manifest fie and the Splash class.

    in this case, it was

    "com.thenewboston.travis.MENU"

  • Comment removed

  • I was having the same problem that several people mentioned already, the app would force quite after the splash screen. I do not know what exactly caused this problem but I was able to fix it by going into the manifest and changing the Intent name from .MENU to .ME and then changing the splash file to .ME as well. Then I was able to run the program with no problems. After that I switched it back to .MENU and it worked. Like I said I have no idea why this worked but you may want to try it.

  • please upload a zip file of the project

    thnx for awsm tutorial

  • I solved similar problem you guys have by including "startActivity(nasIntent);" within my "try" block. it's working now :D

  • If you app force quits after the splash screen, you have to put an List item object on the menu.xml

  • Liking the production, but explaining all the Java is driving me insane, IMHO people should learn Java using a Java tutorial (already many many out there), and then these Android tutorials would be about 100 times quicker...

    For the most part.

  • @Scarfman007 which java tutorial's do you mean?

  • Comment removed

  • I made a pretty careless error, had the same problem with the app not getting past the menu when I clicked on the first button. Here's how I fixed it.

    If all your other code looks the same as the tutorial, but you changed your original package name from the start, try verifying its the same in all your code, check the physical file names in Explorer on windows (idk what the Mac equivalent is) and make sure that in the manifest file it matches as well. Change what you need to, save, restart.

  • Comment removed

  • I had to run it a couple of times before it would work, but it worked. Also, I was given a warning that the class is a raw type, and should be parameterized.

    

  • My app force quits after the splash scrren, i don't understand why its doing this

  • Ok, I'm getting the same issue too. I triple checked EVERY video to see what I did wrong in Menu because when it opens up, I can click on startingPoint but absolutely NOTHING happens. NO, I DON'T have a space after the period, NO, I didn't spell anything wrong, and NO I do NOT have an error. My code is 100% the same unless by some miracle, someone can point out a line of code he changed between videos that I missed or something. Any other solutions?

  • Hey guys please help me!! My problem is like all you others. When I hit the starting point nothing happen.! here is my code :D

    super.onListItemClick(l, v, position, id); ////////// String cheese = classes[position]; /////////// Class ourClass = Class.forName("trening."+chees­e); //////////// startActivity (ourIntent); //////

    thx for the help :D!

  • Comment removed

  • Comment removed

  • My startingpoint button doesn't seem to do anything either and I'm absolutely 100% sure I've entered everything in correctly.

  • @xMeshuggahx Same for me.

  • @xMeshuggahx I had the same problem and I fixed up this way.

    Make sure that in your Menu.java when you wrote your String classes

    String classes [] = { "StartingPoint", "example1", "example2", "example3", "example4", "example5", "example6"};

    Your "StartingPoint" is written the same way you have it on your Manifest.xml

    <activity android:name=".StartingPoint"

    I suppose Travis changed that to a lower case "s" when he "messed around" with his code.

    Cheers!

  • @xMeshuggahx I had the same problem . you probably missed the "." period character at the " Classes.forName("com.NewBoston­.travis."+cheese) . i.e. there is a point after the travis . if u dont have the point it will call com.NewBoston.travisstartingPo­int instead of com.NewBoston.travis.StartingP­oint and catch the exception since the manifest doesnt see that class .hope that helps.

  • @xMeshuggahx I had the same issue and it was a stupid fix, at the end of your package name make sure you have a period before the closing quotation marks ("com.thenewboston.travis." +cheese) - hopefully that helps you - it did for me.

    I saw it earlier and this is a prime example - Welcome to programming, 5 hours of "WHY ISN'T IT WORKING!" and 2 seconds of "Because I forgot that period" :)

  • @xMeshuggahx One of the Class names or references to it are probably not spelled exactly the same. I would double check all references to your classes and ensure its all spelled exactly the same.

  • @xMeshuggahx did you know where is the error? Im trying too, nothing seems to be working

  • @xMeshuggahx I got the solution look at the previous tutorial #20, watch at minute 2:50

  • @xMeshuggahx

    be sure your first array elements is your startingPoint class name

  • u can also set up the classes[] with the name of the class directly e.g.

    Startingpoint.class.getName()

    for the video the this equals "com.thenewboston.travis.start­ingPoint"

    hope its understandable :P

  • Comment removed

  • what does it mean "have a good one"? :D:D:D

  • @borkov4e If you don't know, it is short for "have a good [day]."

  • maybe i am a format freak, but u should work on the indentation of your coding

  • Loving these... for the most part.

  • I am loving these videos... for the most part.

  • startingPoint.class is better than creating a Class reference and using forName

  • thanks for doing these!

  • Nothing happens when I click startingPoint.

  • How many girls are learning Android series...thumbs up if you are a girl :)

    

  • @sweet2smart ur indian huh

  • @leco46 the reason you are having this problem is one, you need to not listen to taking away + cheese. That is needed to refer to the needed position object. If you take that away, it will not know. Your line needs to say this:

    ("com.thenewboston.travis." + cheese) which is basically com.thenewboston.travis.cheese­. Your most likely saying: com.thenewboston.travis. cheese (space beore cheese). This wont give an error. Say: (com.thenewboston.travis." (no space after) + cheese

  • in a nutshell, make sure you do not have a space after the period at this point: like (...travis.") not ...travis. "

  • @jigzelmnt Nothing happens when I click startingPoint even though I have ensure the space after the period is not an issue. :/

  • @mwmnjs so you do NOT have a space after the period?

  • 99.9% of your tutorials are great!

    What's that 0.1%?

    "What's up guys!!" at the start of every freaking video!! >:O

    lol but you are a great help, sir

  • @Iross1309 Because he's not referring to the ActionName, but rather to to the name of the class in the manifest.

  • I had the same problem and i solved it by double checking that the com. thing is the same in the manifest and in all the other classes

    It was all the same so I redone the Class ourClass thing

    Hope it helps!

  • My splash.xml just got hosed... totally my fault I'm sure. But damn. Does anyone around this step care to send me a copy before I go back and retype it all over?

  • You named the class in the manifest "com.thenewboston.travis.START­INGPOINT".

    Why don't you use cheese.toUpper() to capitalize "startingPoint" to "STARTINGPOINT"?

  • Mine crashed after the splash screen. Realised when I modified the Splash code as the last step I put the Class name Menu instead of the uppercase action name MENU. Small error fixed :)

  • Thank you so much for these videos.

  • Comment removed

  • It is easier to read brackets if it's like this

    void go()

    { int x;

    }

    then

    void go(){

    int x;

    }

    that way, you can match the brackets and see where one's missing.

  • You can replace the Class.forName and try catch blocks with: Intent ourIntent = new Intent(Menu.this, startingPoint.class) <-- more convenient

  • Can't get past the Splsh screen :(

  • @Anondody I got the same problem too, any idea anyone?

  • @leco46 i removed the + cheese but it still didn't work for me i do not get the counter after i click startingPoint do you know why?

  • UPDATE: If you run into this, save and close Eclipse and the SDK. Reopen eclipse, then open the SDK, then run your program. That's how I got past the issue!

  • My program is stopping after the splashscreen, but before the menu as well...

    Running on LinuxMint, in case that matters.

  • Same here someone solved it yet? Stopping after the splashscreen

  • wow ive always been scared by menu! but travis made it soo easy to understand!

  • Issue I'm having. When I press startingPoint it doesn't do anything.

  • Comment removed

  • Im getting a warning in Menu.java. Class is a raw type.

    Any idea's guys?

  • @xToxicInferno You need to put a capital 'C' on the Class variable i.e

    Class ourClass = Class.forName etc

  • @mangopearandapples I typed it just like this:

    Class ourClass = Class.forName(

    So that's not the issue.

  • @xToxicInferno ye i got same issue, if u get to fix it tell me , although you can still run your app without problems so just ignore it .. are you using windows 7?

  • Comment removed

  • i get  the application has stopped unexpectedly. Please try again :\

  • @donatassss2 I had this too and fixed it but first, did the message come up before or after the splash screen?

  • @mangopearandapples it came after the splash screen, but i went on with the tutorials and it started working again xD

  • @donatassss2 haha okay good for you

  • i get error

    class is a raw type... blah blah blah -.-

  • @mastermax7777 you need a captial C for the *C*lass ourClass

  • YAY! This works!!! Now I think I would enjoy understanding what I have done.

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