Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Android Tutorial & Lessons 6: Getting Familiar with Java (intro)

Loading...

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

Uploaded by on Jan 23, 2011

Android Tutorial & Lessons 6: Getting Familiar with Java (intro):

Whats up CornFanz, thanks for watching my videos, i would love it if you subscribe and give me some feedback.

Name Range
long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
int --2,147,483,648 to 2,147,483,647
short -- 32,768 to 32,767

I listed what we will be going over in this lesson below, if you know java you may want to just setup the stuff listed below. Because after we set those items up, I will just be quickly going over some java code, and briefly describing what it means. If you are a beginner, you will most likely be confused by the end of this lesson, but I promise you will understand after watching the next few lessons, so, please don't be discouraged if you don't completely understand everything mentioned in this tutorial. Just know that it is hard to describe everything in depth within 10 minutes. Thanks again for watching

First

In this lesson you will:
-add to the splash.xml layout
-add another picture to the drawable folder that will be our splash screen.
-add the resource folder "raw" and add a audio clip to it. (.mp3)
-create a new activity/ new Java class called myMenu
-get a very brief understanding of the Java
-Be introduced to creating variables


This video is the 6th 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: @cornboyz

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (CornboyzAndroid)

  • what up man. After i create the new xml, my setContentView(R.layout.splash­); say "splash cannot be resolved or is not a field". Could you tell me how that happen?

  • @haidangkieu1 what up buddy? most likely it is one of two problems. First check all the items in the "res" folder, (drawable, layout, etc) and make sure all the names are lower case. if you have a layout called "Layout1.xml" it will mess up your program, but it will fix it once you change the name to "layout1.xml" and clean the package. The other problem, which is probably the problem, is that you may be using keyboard shortcuts to add you imports automatically...

  • @haidangkieu1 and sometimes that will add the "import android.R" import. so scroll to the top of you java classes and check the imports, if you see "import android.R" delete it and clean the project.

    Hope that helps

  • Help! My emulator screen is too large! I can't see everything! (30-40% of the screen)

  • @MyRsIrl go to window >android SDK AVD manager> then click on the emulator you want to start up and click the checkbox "scale to display to real size" and you can mess around with the size there. then just have the emulator running in the background, so you don't have to let it load every time you run your app

  • @MyRsIrl what do you mean it doesn't load up? it takes like 3 minutes for the emulator to start up, then you just keep it running, and every time you run as an android application it will launch on that emulator, so always want to keep the emulator running if you dont want to wait for it to load every time

Top Comments

  • Good job Travis.

    The keyword "extends" means that the class myMain inherits from the class Activity. The class Activity have a function named "onCreate", so because myMain inherits from Activity we can overwrite this function in the myMain.

Video Responses

This video is a response to The Black Eyed Peas - The Time (Dirty Bit)
see all

All Comments (65)

Sign In or Sign Up now to post a comment!
  • I want to know why we have to name the audio folder exactly 'raw' ? 

  • What are the dimensions for a wallpaper?

  • TravisIsAwesome. when i make a million bucks from my app watching your tutorials for free. i will be sure to contact you with gifts and joy =D

  • It goes 1 all they way to six

  • First of all, I love your videos. I have two questions. What references do you suggest as I continue to try to improve my programming. Any books or certain websites?

    Also, I am having a hard time understanding where all Eclipse stores file information for resources. For instance, I created a splash screen and named it splash.xcf by accident. I renamed to splash.png, but it looks as if it is still looking for the original file. Also, the resource chooser still shows files I've deleted??

  • "And you have to type TravisIsAwesome, or else it won't work... so make sure you do that."

  • Quick Question: Why did you chooses to call your sounds directory 'raw'? I would have thought to call it 'sound' or 'audio'.

  • hey man umm i need help with the java text editing idk whats wrong but it dont allow me to edit any thing thats in the mymain.java what to 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