Android Tutorial & Lessons 6: Getting Familiar with Java (intro)
Uploader Comments (CornboyzAndroid)
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
All Comments (65)
-
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 ?
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 11 months ago 4
@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...
CornboyzAndroid 11 months ago
@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
CornboyzAndroid 11 months ago
Help! My emulator screen is too large! I can't see everything! (30-40% of the screen)
MyRsIrl 11 months ago
@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
CornboyzAndroid 11 months ago 3
@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
CornboyzAndroid 11 months ago