Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (98)

Sign In or Sign Up now to post a comment!
  • 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.

  • [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 ?

  • 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?

  • TOO LEGIT :D

  • You can drop the items in too the package explorer and it will work.

  • Android Application Development Tutorials by Travis "For all the good stuff"

  • i have a subscription to lynda.com and this far far better. thank you.

  • picture didn't show up, so i copied image in all 3 drawable folders and restarted Eclipse and now it works.

  • wheres a good place to get mp3s?

  • Great tutorial. BTW you can hit F5 to refresh the project rather than clean

  • @david3165 man, it works!!

  • When I clicked on clean, I got the error "R cannot be resolved to a type".why? O.o

    The app worked perfectly before.

  • @XGazudin im also getting the same error. did u figure it out?

  • @Dartheppa

    I'm afraid no.

    Guess I'd have to build up again from scratch, copy the project and try to backtrack any relevant changes after "clean". But...havn't been motivated to do so lately :D

  • @XGazudin well i changed the image i used from the drawable hdpi to the drawable ldpi and now mine works fine, try it out

  • @Dartheppa

    Actually, maybe you remember the video where we first set up our project.

    He talks about the R.java file which is automatically generated in the folder gen [generated Java files] of our project. That file is missing now, hence my programm doesn't know the class "R" anymore. You must have done something which led to the project generating that class again.

  • @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.

  • @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

  • make sure that u use the android xml layout file not the xml file when making the splash image

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

  • @WikiMagic meee tooo its sucks

  • @WikiMagic I get the same message. This gets me so frustrated again

  • @WikiMagic i had the same problem try moving it from the hdpi folder to the mdpi of ldpi and it should work

  • @WikiMagic Copy and paste the background picture to all three drawable folders!

  • @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.

  • @david3165 That worked.

  • @david3165

    thx man.. i did that and it worked!

  • @david3165,

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

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

  • It let me drag and drop into the drawable-hdpi folder

  • I saw what you did there, Where is Bucky? Thumps up

  • thump up the solutions and not the best tutorial comments as he alrdy know the video are great :-) and ppl might need help.

  • Where should I get my sound for the raw folder?

  • Instead of clicking Project-->Clean, you can also right-click on the folder that you added new content and then click Refresh

  • You can drag files directly into Eclipse, just click "copy files" when Eclipse ask you if you want to copy or make a link to the files.

  • Failed to convert @drawable/splash_background into a drawable

    Couldn't resolve resource @drawable/splash_background

    Exception details are logged in Window > Show View > Error Log

  • @vadimasPK same thing here

  • @vadimasPK close eclipse, delete splash.xml from layout folder, open eclipse, create splash.xml again and this time should pick the resources correctly

  • he said  ROAR !!! lol

  • I have a problem.

    When i clean the program i get errors for R as in (R.layout.main)

  • @TheAvrilo restart eclipse will fix the problem

  • Multiple annotations found at this line: - error: Error parsing XML: not well-formed (invalid token) - Element type "LinearLayout" must be followed by either attribute specifications, ">" or "/ >"

    help?

  • this aint bucky right?

  • @praveenchukka yes you are right

  • @TheAvrilo I had the same problem, then i closed eclipse, went to the res-folder in my documents and deleted the splash.xml, I started eclipse again and made it one more time, then it worked.

  • when i do this, it doesn't shows the background when i run the app on the emulator

  • my dorg has a rawrhide chewr toy

  • @flump999: how do you make sounds?

    I used audacity and lame codec to make an mp3 trimming from my music collection.

  • ??

  • guys after i completed the add and sub app,i closed my eclips.No when i start eclips i cant see my app new boston in the package explorer.what should i do?

    Thanx

  • volume is soo low. how do you guys do it? head phones? huge speakers?

  • @MrRapell It is fine for me

  • @MrRapell It's fine for me too. Are you sure that you have youtube's volume, your system's volume, and your speaker's volume as high as it can go?

  • whats up cornelius

  • Protip: make sure you move the Greater Than sign (>) from the end of the line: android:layout_height="match_p­arent" to the end of the background line.

  • please help! emulator freakin slow it seems to take forever to launch the apps

  • @SuperAvailable123 It's the same slow emulator problem for me. I decided to try using my android wildfire instead and it loads the apps almost instantaneously.

    Protip: use a phone and not the emulator unless you have a beast machine

  • Why doesn't my text turn purple/green? It labels everything of android:background="@drawable/­splashbackground" as misspelled and doesn't run properly.

  • Why don't you have to write "@drawable-hdpi"? You don't have to specify the hdpi, ldpi, mdpi?

  • @PancakePlease Android automatically detects which of those folders to access based on the device it's running on.

  • Heeelp pliz! my final code line for putting the .png file is refusing. i did put exctly the same as the one in the tutorial but stil it can execute. it cant read the "@drawable/splash_background" . be4 this, my eclipse IDE was working perfctly.

  • Comment removed

  • Is the raw==rar a BOSTON things... :)

  • How do you repeat a background?

    Mine is quite small and needs repeating (otherwise it's all zoomed in)

  • bucky and travis sound the same lol

  • Comment removed

  • What's a good piece of free software I can use to design my own Splash Screen image and stuff?

  • @ErichLancaster gimp?

  • @ErichLancaster Paint.net for windows, Gimp for linux

  • You can subscribe to this playlist. Click on "Android Application Development Tutorials (thenewboston)" playlist link under my comment. Thumbs up to help others!

  • I would rather use .OGG for sound. mush better for Android :)

  • First app on the market. 96 downloads!

  • absolutely amazing... you really are a good teacher! Thank you so much...

  • I'm loving these tutorials for the most part :D

  • Why do you say "rar" instead of "raw" for the raw folder?

  • @lindsayslorach I think cause the entire name is rawr but he only typed the first 3 letters so it says raw

  • @lindsayslorach He loves you.

  • @lindsayslorach He likes winRAR, why else?!?!

  • @lindsayslorach Yeah! And also... why does he say "drawlable" instead of "drawable"?

  • Thank you 

  • Still working in snow Leopard? Dude, upgrade to lion man ;) great tut by the way.

  • @paatskie i think these were recorded before lion came out

  • @Flubadoodoo you got a point there ;)

  • Best tutorials on YouTube.. Aside from your original tutorials, of course, Travis xD

  • lolol too legit to quit

  • Lol a cat

  • Comment removed

  • lol'd same here

  • Lol im stalking thenewboston for these tutorials.

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