Android Application Development Tutorial - 11 - Adding Resources and Setting 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.
52,832
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 17, 2011

Check out the full series at http://www.thenewboston.com/

Here is a link to the mybringback YouTube Channel. Go and subscribe now!

http://www.youtube.com/user/mybringback

Also, the mybringback official website:

http://mybringback.com/

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • @WikiMagic If the new splash_background image doesn't appear immediately and you're sure the code is correct...try closing the Eclipse IDE (after saving files) and reopen your project again in the Eclipse IDE and when you select the Graphical Layout tab it should now appear.

  • when i write the code in order the image to apear in the graphical layout it says error failed to convert help enyone?

see all

All Comments (100)

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

    I deleted Thumbs.db files in Eclipse and errors gone :)

  • I keep getting errors in the Thumbs.db which restricts me from running my program. This occured after I did the clean thing.

  • JUST IN CASE

    if some is getting "couldn´t resolve @drawable.."

    make sure you have saved everything

    and

    restart Eclipse

    and your background should be in the right place.

  • @WikiMagic Was the image in the correct .png format?

  • [2012-02-23 04:54:08 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host .....I always get this message. what is this ?

  • @david3165,

    I had the same problem and that worked for me. Thank you.

  • @lmommaerts

    Wow thats totally it! My image actually starts with an uppercase. Well I'm to blame because Travis said it has to be lowercase, but then again, I really couldn't see the connection between an uppercase letter and the deletion of my R.java file.

    Thanks for this valuable piece of information

  • @XGazudin If you never figured this out --- what I found is that your R.java file will be deleted if your image file has an uppercase letter in it. If you change the uppercase letter to a lowercase letter, then Build the project, this should fix the problem.

  • change the layout_width and layout_height to wrap_content and add layout_gravity="center" so you don't fuck up your image :)

  • how to add the sound?

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