Added: 9 months ago
From: mybringback
Views: 9,759
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (35)

Sign In or Sign Up now to post a comment!
  • So program too was crashing after the splash screen, the way that I fixed it was accidental and doesn't make sense, but I thought I would post it anyway just in case it works for others:

    I changed the

    category android:name="android.intent.c­ategory.LAUNCHER"

    in the manifest to

    category android:name="android.intent.c­ategory.DEFAULT"

    I ran it, it gave this error:

    "no launcher activity found!"

    when I undid the DEFAULT change, it worked!!

  • I too, am getting the force close error after the 5 second splash screen. Any idea as to how I am able to fix this?

  • I was having the same issues as some of the people are mentioning here with it crashing after the splash screen.  It turned out to be because I copied some of the code from the website which has oddities. For example, the line: ?xml version=”1.0″ encoding=”utf-8″? you can clearly see that the double quote before and after utf-8 are different. For people having issues, I suggest you manually type every line rather than copy paste.

  • I've followed the tutorials on both this channel and CornboyzAndroid and I'm having the same problem. I have followed your instructions to the letter and yet the app completely skips the splash screen completely and goes straight to the app (which in my case is a calculator, 'cuz I'm boring)

    Is there a way I can send this to you so you can have a look at it for me?

  • @OneViGOR what are you talking about? Calculators are sooooo gangsta! I'm guessing that in the manifest you have your Calc Class set to be the ".LAUNCHER" instead of the Splash Class, so just make the Splash Class set to .LAUNCHER and change the Calc Class to .DEFAULT. If you are like, "Travis, you are an idiot, didn't you read that I copied you verbatim?!?!?" you can send the project to travis@mybringback(dot)com.

  • Now I'm getting "splash cannot be resolved or is not a field....."

  • @MaddogD86 Hey maddog, check your imports, if there is import android.R, delete it. Also save all your files, and clean the project. For more info check my blog post on our website mybringback(dot)com >blog>Travis Android Help

  • Is there any way you could post a picture or something on what your code should look like at the end? because I messed up and I have no idea what I did wrong. :/ and I no errors I fixed them. tho I have a warning sign for the textview and both buttons saying "[I18N] Hardcoded string "butten 2", should use @string resource" and I type'd what you did. I've had these sense I wrote it. and it luanches the app and does the starting up screen then crashes when it should go to the menu :/

  • "Intent cannot be resolved to a type" What should I do?

  • Comment removed

  • @mybringback Hi Im one of ur biggest fans! So i have a doubt in the Intent menuIntent - new Intent ("com.mybringback.thebasics.ME­NU") part

    i can instead give it as startActivity("com.mybringback­.thebasicsMENU")

    right? correct me if im wrong

  • @MrLolztome1 Try it. Logically I was thinking the same thing, but "com.mybringback­.thebasicsMEN­U" might not be a intent by default, and startActivity might see it as a string instead, so if that is the case it would not work. However it might see it as a intent and if it does it will work. Try it, I'm just watching before I actually start coding.

  • How can you make a loop in a thread?

  • Hi Travis, when i start my program with com.myownpackage.thebasics.SPL­ASH, it gives me an error after the 5 seconds screen is loaded saying an unexpected error occurred. But when I keep the previous name com.myownpackage.thebasics.MEN­U the program works fine. Why is that?

  • After 8 Tutorials it's time for me to say something lol.

    These Tutorials are great, I never worked with Java so I don't know for how long I can keep up but then I can do your Java Tutorials too lol.

    Number 8 was the first one I had to pause and rewind to take in the info, I don't know if that's a good sign lol

    Thx for these Tutorials, I reg. on the forum and getting answers to my questions over there real quick.

  • im pretty sure i have all the code exactly the same, but when i try to run the application on the emulator, the splash screen works, and then it says the application has stopped unexpectedly. any idea whats wrong?

  • When I clean my project, I still cannot reference my image for the background. I can however, reference the image for the icon in the manifest file. If I restart Eclipse, it works and I can set it as a background. How do you get eclipse to refresh the images without having to restart it???

  • Thanks for these tutorials ! They are really helpful ! Lol Im writing a comment to every video u got:)

  • BRILLIANT!! Easy to understand, just right. Thanks Travis |¬)

  • "no launcher activity found!

    The launcher will only sync the application package on the device!"

    Help?? lol

  • @cfsnipa most likely you have changed your "laucher" class within the mainifest to .DEFAULT instead of .LAUNCHER you need to have one and only one .LAUNCHER class/actiivity defined in the manifest... hope you know what I'm talking about. If not, feel free to ask for help in the forum at mybringback(dot)com

  • too cool... moving on up to number nine...

  • nice tutorial. PEACE.

  • this fucking rules. nice vids

  • okay so there is no errors but when i launch it i get cant launch at this time foreclose type error

  • @thenaenaeshow Same thing here, no errors at all, but force close after the Splash image. Awsome work however man

  • @CynicalSpix Sorry, I solved it. Great work, this tutorials are fenomenal

  • @CynicalSpix mine did the same. took me awhile but i figured out that i spelt DEFAULT wrong in the manifest maybe you did the same?

  • thank you! saved me a lot of time !

  • Comment removed

  • Hey Travis - originally saw this video on the Cornboyz channel - have sent you an email - was getting error messages - copied your code verbatim. If there''s anychance you could let me know where i'm going wrong - happy to slip you some beer money! Jez CMP

  • You're the man as always Travis. Really dude keep on putting out videos!

  • @exjrain I get the same error sometimes often after a clean. Just check there are no errors in the XML files and the errors will disapear when you'll click on Build.

    (Sorry for my English...)

  • setContentView(R.layout.main);

    I get an error on that line that says menu cannot be resolved or is not a field. Same with the reference to the splash xml. Any ideas how to fix?

  • @exjrain Check if your R.java file is in your gen folder. If it isn't then check if your project has any errors and clean the project. It should generate itself again.

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