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

Android Tutorial & Lessons 4: More XML and reference background

Loading...

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

Uploaded by on Jan 21, 2011

Android Tutorial & Lessons 4: More XML and referencing background

Check out the discussion @ my forum for this lesson:
http://www.cornboyz.com/


What's up my peepz? (who says peepz anymore?) This lesson will get you up and running, and even if you are an absolute beginner, you can do it. Please subscribe and thumbs up the video and you will be a pro in no time

In this lesson you will learn:
-A better understanding of XML
-Adding a Button
-Find coding that even when we don't remember the exact coding
-Basics of the Linear Layout
-New XML functions
-Adding our picture to the background of our app
-Running our program on the emulator

This video is the 4 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, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (CornboyzAndroid)

  • please help i try to create a new android project and then...

    com.android.ide.eclipse.adt.in­ternal.project.AndroidManifest­Helper] Unable to read C:\android-sdk-windows\samples­\android-8\AndroidManifest.xml­: java.io.FileNotFoundException: C:\android-sdk-windows\samples­\android-8\AndroidManifest.xml (The system cannot find the file specified)

  • @PedSet try downloading/installing the java JRE. Also I would suggest following the my other series on mybringback

  • hey can you send me your project, Right click>Export...> Go into the gen folder, and click file archive and then send it to cornboyzandroid@gmail.com

  • hey evertime i try to reference my pic. i lose my r.java file

  • @1983Jamar you probably have your image (or a different resource) misnamed. What I mean by that, is that if you have your image named Mypicture.jpg it will delete your project, but if you change it to mypicture.jpg and clean the project it should rebuild your R.java. So just make sure all your resources are lowercase and you dont have any crazy symbols or spaces, etc. hope that helps

Video Responses

This video is a response to Far East Movement - Rocketeer ft. Ryan Tedder
see all

All Comments (58)

Sign In or Sign Up now to post a comment!
  • Dude your awesome!! Thanks for the videos man!

  • @1983Jamar did you ever find the solution to this error? Can't find anything in the comments.

  • When I select text or move from 1 line to other, my text changes, dont know what is happening :(

  • i think you meant java script and not javascript

  • @waluhkuning i answer my own question, YESS!!.. it has affect!! :)

  • is picture size affect? i mean i try to ref the background with my pic but it always error, it say "Must start with #"

  • how do i make a comment in xml

  • @CornboyzAndroid

    Please Help!

    I'm using Win7 64bit with Eclipse Helios 3.6.2. I got Everything setup as you have showed. I'm able to load the Emulator and emulator shows default information.

    When I try to build after adding background using run as-> Android Application then 1) console shows no errors 2) Emulator will open with the default settings. It will not load background(app). It happens with other example apps as well. Any ideas why? Thanks

  • I am getting this error in front of the first text view:

    Multiple annotations found at this line: - The value of attribute "android:background" associated with an element type "LinearLayout" must not contain the '<' character.

    And it won't let me run it, please help, thanks in advance.

  • I get this message when I try to apply the "new" script (button)

    "attribute is missing the android namespace prefix"

    How do I solve this problem? thanks in advance

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