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.
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?
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 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 ?
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.
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 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....
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.release(); 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?
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!
@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.
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.
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
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.create(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 :)
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.
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!
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.
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??
bonamana90 5 days ago
is it same if i put the "mpSplash.start();" on while loop? and then stop(); it when activity start();
waluhkuning 5 days ago
hahaha i like your way to teach us..
"hi man, can i listen that?"
it is so simple to understand, nice approach dude..
waluhkuning 6 days ago
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?
ilovemomo88 1 week ago in playlist Android Tutorials: For Apps & Game Development
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.
thedistantone1 2 weeks ago
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.
gursimransingh01 2 weeks ago
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?
YahooSoccerj7 3 weeks ago in playlist Android Tutorials: For Apps & Game Development
damn your funny haha! makes java so much funnier. cant imagin my self joking with a mic :O
emir199595 1 month ago in playlist Fler videoklipp från CornboyzAndroid
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
farooqs1000 1 month ago in playlist More videos from CornboyzAndroid
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
farooqs1000 1 month ago in playlist More videos from CornboyzAndroid
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.
harshpradip1 1 month ago
This has been flagged as spam show
hey i need a clarification. can i insert a video file in2 a raw folder nd play it .can i use media player class for it ? pls help cheers!
jamesanderson415 1 month ago
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 ?
spyxan 1 month ago
Comment removed
bolivarsoriano 2 months ago in playlist More videos from CornboyzAndroid
I love these videos and string cheese... thanks so much!!!
1smawley 2 months ago
I'm not sharing my snake fighting a scorpion with you! Haha. Best metaphor ever!
Kujodude567 3 months ago
It helps me a lot.thx!!
teovermesan 3 months ago
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.
JackLinhart 3 months ago
Mine refuses to recognize the existence of any resource files so I have an error at R.layout.splash and R.raw.loop_noise.
JackLinhart 3 months ago
Great, great. Watching a whole playlist and learning a lot.
oseloth 4 months ago
Love the analogy...
lliiffee123 4 months ago
funny :D
praveenchukka 4 months ago
Thank you so much for making all these videos. What is the difference between stop and release?
JigokuTrigger 5 months ago
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.
yemenhar 5 months ago
i LOVE the explanation of scope resolution.
petershort 6 months ago in playlist Android Tutorials: For Apps & Game Development
Best explanation of scope I've ever heard - I'm totally going to use that to help my son!
eagix 6 months ago in playlist Android Tutorials: For Apps & Game Development
hey dude i can't get my emulator to play any sounds...........
TheSagarsarkar007 6 months ago
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 6 months ago
@billybong78 do you have your thread method as "start" or as "run" cause it needs to be, whateverYouCalledYourThread.start()
hope that helps
CornboyzAndroid 6 months ago
@billybong78 try dropping the image in "Graphical Layout" mode, not code. (little other tab on the left)
michaeljiz 5 months ago
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 6 months ago
@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.release(); which will kill the sound. Hope that makes sense?!?!
CornboyzAndroid 6 months ago
@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
MrStewdaddy 6 months ago
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 6 months ago
@darthbranko I get the same thing!
Help?
gloryfield2 6 months ago
like ur crappy computer...lol
DOfficial100 7 months ago
Comment removed
leorahul16 7 months ago
"hey man, can I listen to that.. you are like.. NO, this is my variable.. " lol :)
bachok83 7 months ago
Rar folder? I don't see a RAR folder. RaR really? anyone else annoyed by this?
dXMETRIXb 7 months ago
Comment removed
saykharng 7 months ago
Comment removed
saykharng 7 months ago
you crack me up explaining variable scope lol +1 man, great tutorials
syberslidder 8 months ago
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"
dodiezresibemol 8 months ago
Rattle Snake fight :D
k1ingDede 8 months ago
raw cannot be resolved or is not a field. Could you do a video response on how to fix that please
TheiWokcLan 9 months ago
@TheiWokcLan Ok, I found the problem. You gotta create/move the "raw"-folder INTO the res-folder. :)
Khrinx 9 months ago
@Khrinx Thanks!
TheiWokcLan 9 months ago
raw cannot be resolved or is not a field :(
Khrinx 9 months ago
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!
SaxeGotha 9 months ago
It will be really great if you could provide links to the code too
sudeepsudeeptalati 9 months ago
your virtual device is running so fast... how can i make it work fast ?
MuhammadRaza2009 9 months ago
@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.
CornboyzAndroid 9 months ago
setContentView(R.layout.splashscreen); there seems to be an error underneath the splashscreen its not able to detect it what should be done
vinikatyal 9 months ago
setContentView(R.layout.splashscreen); there seems to be an error underneath the splashscreen its not able to detect it what shold be done
vinikatyal 9 months ago
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.
ffviiac 9 months ago
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!
205damian205 10 months ago
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!
stealthtt2002 10 months ago
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.
blinkedeyes 10 months ago
thanks so much.alls working and is dandy..wicked!
iyati 10 months ago
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!
deviantdesignNL 10 months ago
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
CornboyzAndroid 10 months ago
when i take away import.android.R, it says R cannot be resolved to a variable.
jonbink16 10 months ago
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.create(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 10 months ago
@iyati you want to delete the import android.R
CornboyzAndroid 10 months ago
Thanks a lot for this man, really helped :) subscribed
IXxJustinxXI 11 months ago
I just want to say 'thank you' to you.
richinose 11 months ago
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.
f0dder 1 year ago
wow what an awesome lesson o_O
tnx.. now i know more stuff :D
lopatamd 1 year ago
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 1 year ago
@hyperxstudios see if you still have the R.java. if not make sure all your resources are lower case letters and numbers only.
CornboyzAndroid 1 year ago
Comment removed
saykharng 7 months ago
Comment removed
saykharng 7 months ago
really can't thank you enough Travis - this is all brilliant
gifton 1 year ago
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!
kristoball1979 1 year ago
@AwesomeGamingGuy Haterz gunna hate, gators gunna gate
CornboyzAndroid 1 year ago
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 1 year ago
@PinkPieToday Indeed
AwesomeGamingGuy 1 year ago
@PinkPieToday yeah right.. i think we ALL know Java already.. :)
lopatamd 1 year ago
@lopatamd That's not what i said...
PinkPieToday 1 year ago
Ty for the video...I was wondering do you add a video the same way you add a sound?
androidfunmore 1 year ago
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.
JeremyOstdahl 1 year ago
THANKS for the help !!
TheMiTy 1 year ago