Learn Android Tutorial 1.8- Intro to Threads (finish splash Activity)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,820
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 24, 2011

Learn Android Tutorial 1.8- Intro to Threads (finish splash Activity)

n this lesson you will:
-Finish our thread
-Get our splash screen up and running
-Learn about Threads the methods they can include
-Correct some mistakes
-Set up a new activity in the Android Manifest
-Set up the onCreate method for our myMenu class


This video is the 8th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C, OpenGL, or as a matter of fact, any other programming language.




If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

follow me on twitter: mybringback
www.mybringback.com

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (mybringback)

  • 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

  • "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

see all

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!!

  • @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.

  • 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.

  • 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?

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