Learn Android Tutorial 1.7- Setting up our 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,842
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 24, 2011

Learn Android Tutorial 1.7- Setting up our Splash Activity

Here is the link for learning more about android Activity: http://developer.android.com/reference/android/app/Activity.html

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


In this lesson you will:
-Learn about Activities, and how add the proper layout for an Activity
-Start typing some Java.
-Create a new class
-Learn a little about Threads, and how start creating a Thread variable


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.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (mybringback)

  • when i do the setContentView(R.layout.main); at 5:18 the "main" part makes an error

    any solutions?

  • @jordorama1 yea, most likely you have the import"android.R" so just delete that import and you should be good

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • @MrEoffy

    Look at the error log tab at the bottom, it probably has some red writing in it that tells you about an error... mine said "the audio file in /raw has an invalid name (a-z, 0-9)" something like that... so i right clicked it, "Refactor", "Rename..." and changed all capital letters to lower case letters, then the error went away and it automatically fixed my "R.layout.main" error. So if you sort out that error in the error log, then it will automatically fix that error too.

  • i delete the import android.R after showing the error on .main..but now it's showing error on R and says cannot be resolve to a variables...plzz help..

  • @MrEoffy Delete the import android.R

  • R cannot be resolved to a variable? i was having issues with "R.layout.main" giving an error so i deleted the import "android.R". now i get an error that says R cannot be resolved to a variable.........any Ideas as to why this may be happening?

  • @mevmevmev, you can export it as zip file. Save it somewhere else and then just reload if oyu mess up

  • great videos. Haven't done java since college. But it's all coming back to me now. :) Keep it up!

  • Is there an easy way to save the entire project as you go so when an error occurs in say tutorial 8, I can reload my tutorial 7 setup?

  • Please upload UI tutorials

    And a small game like shooting random objects

    Thanks

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