Added: 1 year ago
From: CornboyzAndroid
Views: 39,454
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (82)

Sign In or Sign Up now to post a comment!
  • i tried it but it couldnt direct from the splash activity to the "main.xml"....

    meaning after the splash activity, an error "the application ___ has stopped unexpectedly. Please try again."... how do you fix it??

  • is it same if i put the "mpSplash.start();" on while loop? and then stop(); it when activity start();

  • hahaha i like your way to teach us..

    "hi man, can i listen that?"

    it is so simple to understand, nice approach dude..

  • Hey can anyone advice me. i manage to have all the coding right. but when i launch it on the emulator, eclipse say source not found and on the emulator screen was black. what happened?

  • hey dude, one quick question. I've followed everything up until the end of this video and it's all running smoothly except the code we left off with after this video gives me a forceclose. The logo>audio>mymain all starts up followed by a forceclose. any ideas? thanks bro. very informative videos by the way and considering I knew jack about this before today, your videos are helping amazingly.

  • hey man, how to play sound when Menu items are pressed?

    What I want to do is after playing the sound when menu list items are pressed, each list items of Menu will open respective activity.

  • so I did everything you did, when you tested the sound before you did the pause, destroy, or resume. Your sound worked, but when I do mine (5 seconds like yours) however it never played. I also tried a 3 minute song with the 5 seconds but I don't hear anything. did my sounds on the emulator get muted? if so, how can i fix that. I got the ringer volume on full so how come my sounds aren't even playing?

  • damn your funny haha! makes java so much funnier. cant imagin my self joking with a mic :O

  • what if i specify launcher for mymenu instead of splash in mainfest.xml is it going to launch mymenu instead of splash need to work on it... health tip alcohol kills

  • i have a question we do have two activities here say splash activity and my menu activity in form of two .java files why is that only splash activity is called first we didnt specified any main method asking copailer to start executing instructions from a point is that mainfest.xmal launcher action does it launching splash activity first. need clarification here travis

  • I m new to android programming and only have some knowledge bout java but u make it sound so simple.. just love watching ur vids thanx.

  • I need some help after I input the release and pause function the app just crash when the timer has reach limit and it switches to mainmenu. What can I have done wrong ?

  • Comment removed

  • I love these videos and string cheese... thanks so much!!!

  • I'm not sharing my snake fighting a scorpion with you! Haha. Best metaphor ever!

  • It helps me a lot.thx!!

  • If anybody's having trouble w/ this, make sure you don't import the R class from Android. It redefines what R.layout/raw will do and just gave me some trouble.

  • Mine refuses to recognize the existence of any resource files so I have an error at R.layout.splash and R.raw.loop_noise.

  • Great, great. Watching a whole playlist and learning a lot.

  • Love the analogy...

  • funny :D

  • Thank you so much for making all these videos. What is the difference between stop and release?

  • i dont know if you have made a tut about getting sound/videos from a home server. basically am trying to make an app that access my server that i set up in my home and wanting to make an app that lists all the files in a dir in that server then the possiblity to stream the vid/song/pic throw the screen. I'll be watching the rest of the tuts eventually but if there is one that already expalins it i'll be happy to watch that first.

  • i LOVE the explanation of scope resolution.

  • Best explanation of scope I've ever heard - I'm totally going to use that to help my son!

  • hey dude i can't get my emulator to play any sounds...........

  • i still cant get the splash jpeg to show up, but the sound works great, whats up with that? the splash.xml shows the jpeg just fine in graphical mode....

  • @billybong78 do you have your thread method as "start" or as "run" cause it needs to be, whateverYouCalledYourThread.st­art()

    hope that helps

  • @billybong78 try dropping the image in "Graphical Layout" mode, not code. (little other tab on the left)

  • hey, I had a 20 second sound to play on the startup, but it didn't play through, in other words the sound seemed to "destroy" itself when it switched to myMenu?? Can you tell me why it did this. I have everything setup the same as you but I had the timer set to 20000 for the 20 sec sound, I then changed it to 1000 to see if the sound would play through to the myMenu, but it would stop playing

  • @MrStewdaddy hey man, I kind of forgot how we set this up, But I believe we destroyed the mediaplayer sound within the onPause method, or one of those methods. So the reason the music stops is that we called the method whateverYouNameYourSound.relea­se(); which will kill the sound. Hope that makes sense?!?!

  • @CornboyzAndroid Thanks for responding Travis. What I am referring to is this: At about 4:35 of this Tutorial you changed the splash screen from 5 seconds (5000) to 1 second (1000) to demonstrate how the sound would play through to the menu screen. I had mine set to 20 seconds (20000) because I had a 20 second sound, so I reduced the splash screen to 5 seconds expecting the sound to play through, but my sound stops as soon as it changes to the menu screen?? I don't know why it's stopping

  • Hey m8, when i test my app, It works, the welcome screen appears and the music plays, but then i get the Force close notice, unlike you, I cant get to the main menu that I created earlier with the tutorial. Can you help me please?

  • @darthbranko I get the same thing!

    Help?

  • like ur crappy computer...lol

    

  • Comment removed

  • "hey man, can I listen to that.. you are like.. NO, this is my variable.. " lol :)

  • Rar folder? I don't see a RAR folder. RaR really? anyone else annoyed by this?

  • Comment removed

  • you crack me up explaining variable scope lol +1 man, great tutorials

  • Dude you are great... but i was wondering, is it like this how you call it in your country... the INT. You say "inerger" :)) we call it "integer"

  • Rattle Snake fight :D

  • raw cannot be resolved or is not a field. Could you do a video response on how to fix that please

  • @TheiWokcLan Ok, I found the problem. You gotta create/move the "raw"-folder INTO the res-folder. :)

  • @Khrinx Thanks!

  • raw cannot be resolved or is not a field :(

  • My program kept crashing for a while until I realised that I used .wma sound files and that those weren't supported by Android. Converted them to .ogg and it works just fine now!

  • It will be really great if you could provide links to the code too

  • your virtual device is running so fast... how can i make it work fast ?

  • @MuhammadRaza2009 you can start the emulator by going to the window tab>android sdk and avd manager>then click on the emulator you want and press start. then you can programming while it is loading up, and once it is loaded, when you run your application it will start pretty quickly. So basically don't close the emulator, so you won't have to wait for it to load every time you want to test your application.

  • setContentView(R.layout.splash­screen); there seems to be an error underneath the splashscreen its not able to detect it what should be done

  • setContentView(R.layout.splash­screen); there seems to be an error underneath the splashscreen its not able to detect it what shold be done

  • Thanks for the tutorials =) . I have to make a few android apps for a job i just started and this is really helping me a lot.

  • Hey, First i gotta say your tutorials are awesome and I love them! I got a question tho. How do you make your emulator work so fast? Mine is loading for over a minute. Its window is also huge, like menu button and exit button are not even displayed because window is too big!

  • Great video! Man they need to put this on the android website, what you showed in 2mins I was trying to do forever! >.< Thanks again for the vids keep them up!

  • hi travis i need a help. i saw ur android series videos but in 9 lesson u taught abt media player thx for that but travis i want to play audio with controls means stop resume start n more im not getting that so plz help me.

  • thanks so much.alls working and is dandy..wicked!

  • I accidentally put my raw folder inside the project folder instead of in the resources folder, I moved it but it stills shows up in Eclipse even after I cleaned up my project.

    I can't delete it in Eclipse either because it says that file is out of sync with file system, how to get rid of this folder in Eclipse?

    Awesome and very helpfull tutorials bytheway, keep it up!

  • most likely you the name to your resource (pic, music, etc) has a capital letter in it, like MyMusic.mp3 and that will cause the R.java to delete itself, change the resource names to all lower case (mymusic.mp3) and then go to project>clean and you should be good to go

  • when i take away import.android.R, it says R cannot be resolved to a variable.

  • Amazing tutorials.thank you so much.Im having two problems:-R.layout cannot be resolved.I have tried to import androidR but still doesnt work..mpSplash=MediaPlayer.cre­ate(this, R.raw.swaggalikeus);-my (this,R.swaggalike us) is greyed out and it cantbe resolved either..The same is happening in myMenu.Im not sure what I have done wrong because ive gone through the tutorials four times :(..

    Can anyone assist? Im new to android and i have no java knowledge,as2 and as3,yes..thanks :)

  • @iyati you want to delete the import android.R

  • Thanks a lot for this man, really helped :) subscribed

  • I just want to say 'thank you' to you.

  • Awesome vids Travis. To get sound playing I had to add audio support to my virtual device. To do this from Eclipse Window Menu click Android SDK and AVD Manager. In Virtual devices click Edit.. Below in Hardware click New... button and select Audio playback support from the drop down.

  • wow what an awesome lesson o_O

    tnx.. now i know more stuff :D

  • when i want to add the song to the media player (R.raw.song) it can't find the raw how do i fix that?

  • @hyperxstudios see if you still have the R.java. if not make sure all your resources are lower case letters and numbers only.

  • Comment removed

  • really can't thank you enough Travis - this is all brilliant

  • Thanks a lot Travis! Not new to programming, but don't know much Java. Learning the basics of Java together with the Android stuff is just what I was looking for. You're right, TravisIsAwesome ;) Gonna keep watching!

  • @AwesomeGamingGuy Haterz gunna hate, gators gunna gate

  • Please drop the basic Java stuff and concentrate on the Android and XML part. People have to learn Java anyway its not the best way to do during Android programming. If you like teaching Java I would suggest splitting it up into two different series.

  • @PinkPieToday Indeed

  • @PinkPieToday yeah right.. i think we ALL know Java already.. :)

  • @lopatamd That's not what i said...

  • Ty for the video...I was wondering do you add a video the same way you add a sound?

  • Thanks for taking the time to explain what the code means and why we use it. Keep up the good work explaining it to us in plain English.

  • THANKS for the help !!

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