@sophiekattantv go to your workspace folder in your documents or something, then go to the project you are working on, and there you make a folder called raw :)
@sophiekattantv oh, i forgot something. When you are in your project folder, you need to get into the res folder and make a folder called raw there :)
If your wondering why the Splash Acticity only runs once ots because ur phone or emulator is still running the application...what u need to do is press the home Button in the Emulator, then press Menu and Go To Settings, click on Applications, then Manage Applications, Click on "The New Boston" or whatever your app is called and Click the Button " Force Stop"....ur app should now fully close and ur Splash Screen will now open on App Start Up :)
mine runs great on my phone but the splash only plays one time. a day later if i run it it skips right to main. how can i "reset" the splash on close ?
For anyone who cannot get the sound working on the emulator (no matter what application you are running)
1.check your windows volume settings for emulator
2. go into your emulator and go to settings and turn all your volumes up
3. for newer versions of SDK, sound does NOT work if "snapshot" was enabled when creating the adb (don't know why, but me and a bunch of other people using sdk with windows had this problem)....to fix this...you have to create a NEW emulator with no snapshot
Cant get the sound working. How done exactly the same as in the tutorial, but still no sound. Thinking it might be the emulator. Anyone got any ideas?
When I run it, I get an error: Sorry! the application has stopped unexpectedly, please try again: force close. Any ideas? Do I need to enable sound for my emulator?
@tonymuilenburg I had the same problem when I did it this morning, but when I did it all over again it worked just fine. So I dont know what happened, I typed everything just like he did though..
@tonymuilenburg I had that problem, I added audio support - still crashed, tried a different mp3 and it was ok. I'm sure adding audio support helps though.
Anybody, THREE questions. 1) Why does he put the ourSong release method under OnPause, and not onfinish? Wouldn't it make sense to do it after the activity is complete? 2) Does it matter if you do the mediaplayer after the "threadtimer" paragraph? 3) Why does he type it "onSong" and not "Onsong" or "OnSong"?
@PancakePlease As for the first question, he stated in one of the previous tutorials that you can code everything you want from activity to do when it needs to finish in the onPause method too. So, in this case, there is no onFinish method so he used it there, but your logic seems OK and if that was the case, that you have onFinish method and the nature of this activity is not splash screen (it basically needs no pause, it's splash and done), you could use it that way.
@PancakePlease 2) It is basically irrelevant if you put it before of after the "threadtime" paragraph, but it is important that you put those two oursong lines before the "timer.start();" line. If you start the timer, the timer would end and song wouldn't be played as at the end of the timer you have a call for opening new activity. If this is wrong, someone please correct me, as I am not 100% sure whether the song will play "during" the timer method. 3) A common practice for naming variables
Why did Travis do all the work to make these videos, just to give all the views to Bucky's account? Why didn't Bucky just say "Head on over to MyBringBack's channel for 200 Android tutorials" ?
You can subscribe to this playlist. Click on "Android Application Development Tutorials (thenewboston)" playlist link under my comment. Thumbs up to help others!
Everytime I try to run it I get an Unexpected Error and then it Force Close. HELP!!
DarielAlmeida 3 days ago
Such a helpful tutorial - I'M LOVING IT !)
PaT07M 4 days ago in playlist Android-Development
I don't have a raw folder please answer me on my email : sofyluvsmiley@ gmail . Com
sophiekattantv 5 days ago
@sophiekattantv go to your workspace folder in your documents or something, then go to the project you are working on, and there you make a folder called raw :)
EspenHMusic 4 days ago
@sophiekattantv oh, i forgot something. When you are in your project folder, you need to get into the res folder and make a folder called raw there :)
EspenHMusic 4 days ago
How did he create the sound and add it to the file raw ?
sophiekattantv 5 days ago
i cant find my raw folder
EwenSuper 1 week ago
@EwenSuper it's an optional folder, you have to create it by yourself and put your sound files in it
52MHz 1 week ago in playlist Android Application Development Tutorials
I should be asleep!!!
quietpopcorn 1 week ago in playlist Android Application Development Tutorials
Comment removed
freaky3ro 1 week ago in playlist Android Application Development Tutorials
If your wondering why the Splash Acticity only runs once ots because ur phone or emulator is still running the application...what u need to do is press the home Button in the Emulator, then press Menu and Go To Settings, click on Applications, then Manage Applications, Click on "The New Boston" or whatever your app is called and Click the Button " Force Stop"....ur app should now fully close and ur Splash Screen will now open on App Start Up :)
badadaha03 1 week ago
RAR folder
madoato 2 weeks ago in playlist More videos from thenewboston
For the most part :)
GoodLegoInventions 2 weeks ago in playlist Android Application Development Tutorials
Song doesnt play :(
stuck
iPodjbG33K 2 weeks ago in playlist Android Application Development Tutorials
why does he always say "for the most part" its kind of annoying, but the tutorials are still good.
SuperNerdTech 3 weeks ago in playlist Android Application Development Tutorials
rawr....
chuckensmith 4 weeks ago
Even Late you the best man! Thank You!
MrDiegosalas 4 weeks ago
Even though it was a late night, the had tut more content in this one enjoyed!
learninjava 1 month ago
Your grandma is attention seeking!!
Baaataaataaa 1 month ago in playlist Android Application Development Tutorials
Grandma Joke Classic !!!!!
Microcube22 1 month ago
mine runs great on my phone but the splash only plays one time. a day later if i run it it skips right to main. how can i "reset" the splash on close ?
aluminumfetish 1 month ago
Man you are awesome :)
Cheers from India :):)
gursimransingh01 1 month ago
@anyone!!! Please help me the virtual thingy won't play my splash activity help please reply!!!!!
joeymanirockoutloud 1 month ago
"Unfortunately, The new Boston has Stopped."
please help???@@@
Thank you sooo much
xsxgotenxsx 2 months ago
New Drinking Game: Every time Travis says "For the Most Part" take a swig... greatest way to get wasted and learn Android (:
LittleLukeh 2 months ago 2
@LittleLukeh dam it, I got wasted!
q8ieng 1 month ago
Not adding sound...
NerdsWBNerds 2 months ago in playlist Android Application Development Tutorials
Great tutorial, but what is with your pronunciation of 'raw'?
fraserelliottguitar 2 months ago
Comment removed
iXavierProductions 2 months ago
I now have a *sound* understanding of the concept!
1arithehun 2 months ago 2
why not use:
try{ sleep(splashSang.getDuration());
?? :)
JohnKSve 2 months ago
@JohnKSve
because if sound has 1 minute duration some ppl dont wanna wait till it ends
devilazpl 3 weeks ago
I think Grandma is name of a pet dog
supersushi269 2 months ago
Adding "= new MediaPlayer();" after "MediaPlayer ourSong;" seemed to make the sound work for me!
myvette902 2 months ago
"Grandma put your clothes back on" - Hahahaha!
McbainGames 3 months ago 2
For anyone who cannot get the sound working on the emulator (no matter what application you are running)
1.check your windows volume settings for emulator
2. go into your emulator and go to settings and turn all your volumes up
3. for newer versions of SDK, sound does NOT work if "snapshot" was enabled when creating the adb (don't know why, but me and a bunch of other people using sdk with windows had this problem)....to fix this...you have to create a NEW emulator with no snapshot
CleverSage0 3 months ago in playlist Android App Development Tutorials (thenewboston) 3
@CleverSage0 Thaanks!!! no. 3 was the case !!!!
DarkSmith91 1 month ago
raw != rar
BYONDfps 3 months ago 4
Cant get the sound working. How done exactly the same as in the tutorial, but still no sound. Thinking it might be the emulator. Anyone got any ideas?
laba1987 3 months ago
So funny. xD
HandMekeysYouFuCoSkr 3 months ago
lol this guy is such a dork but in a really funny way aka DONTCHANGE
dvzqz87 3 months ago
Setup everything exact the same as tutorial, have mp3 file in raw folder under res, but MediaPlayer is not working. Why?
raphaelwu1988 3 months ago
dont use the emulator use your android phone in debugging mode, its the REAL emulator!
SilentTalker 3 months ago in playlist Android Application Development Tutorials
for the most part
iRouRoui 4 months ago in playlist Android Application Development Tutorials 7
When I run it, I get an error: Sorry! the application has stopped unexpectedly, please try again: force close. Any ideas? Do I need to enable sound for my emulator?
tonymuilenburg 5 months ago
@tonymuilenburg I had the same problem when I did it this morning, but when I did it all over again it worked just fine. So I dont know what happened, I typed everything just like he did though..
gimpforbrawl 5 months ago in playlist Android Application Development Tutorials
@tonymuilenburg I had that problem, I added audio support - still crashed, tried a different mp3 and it was ok. I'm sure adding audio support helps though.
realbudman 4 months ago
Anybody, THREE questions. 1) Why does he put the ourSong release method under OnPause, and not onfinish? Wouldn't it make sense to do it after the activity is complete? 2) Does it matter if you do the mediaplayer after the "threadtimer" paragraph? 3) Why does he type it "onSong" and not "Onsong" or "OnSong"?
PancakePlease 5 months ago
@PancakePlease As for the first question, he stated in one of the previous tutorials that you can code everything you want from activity to do when it needs to finish in the onPause method too. So, in this case, there is no onFinish method so he used it there, but your logic seems OK and if that was the case, that you have onFinish method and the nature of this activity is not splash screen (it basically needs no pause, it's splash and done), you could use it that way.
ididitfortehlulzrly 5 months ago
@PancakePlease 2) It is basically irrelevant if you put it before of after the "threadtime" paragraph, but it is important that you put those two oursong lines before the "timer.start();" line. If you start the timer, the timer would end and song wouldn't be played as at the end of the timer you have a call for opening new activity. If this is wrong, someone please correct me, as I am not 100% sure whether the song will play "during" the timer method. 3) A common practice for naming variables
ididitfortehlulzrly 5 months ago
@ididitfortehlulzrly Thanks!
PancakePlease 5 months ago
Cool tutorials man, but you should see therapist for your grandma problem :D
Salee1204 5 months ago
Why did Travis do all the work to make these videos, just to give all the views to Bucky's account? Why didn't Bucky just say "Head on over to MyBringBack's channel for 200 Android tutorials" ?
justinrixx 5 months ago in playlist TheNewBoston - Android
I couldn't access the raw folder, need help?
merezk 5 months ago
@merezk Make sure you created the raw folder inside the res folder and not the root folder
RELDude 5 months ago in playlist TheNewBoston - Android
@RELDude legend!
brad6193au 2 months ago
Does the sound file have to be .mp3 or can it be something else like .wma?
xsannyx 6 months ago in playlist TheNewBoston - Android
Grandma, put your clothes back on!!!
darkechosx 6 months ago
You so funny! :D
ShadowSky24 6 months ago in playlist TheNewBoston - Android
I made it loop using the setLooping() method before starting it, then instead of release i lowered the volume using the setVolume() method. Awesome!
LearnWebDev 6 months ago in playlist TheNewBoston - Android
hahahaha...... granny is naughty.........
maddyverma1 6 months ago
Comment removed
ProudTBeGreek 6 months ago
hey men what program are u using to make sounds for apps?
McLizze 6 months ago in playlist Android tutorials
@McLizze I used the Hydrogen drumkit. Not sure if you can get it on platforms other than Linux, though.
justinrixx 5 months ago in playlist TheNewBoston - Android
@justinrixx np, i can make virtual machine and run linux on it thx
McLizze 5 months ago
thought you have to use mPlayer.prepare();
simme808 6 months ago in playlist TheNewBoston - Android
for the most part
lartti83 6 months ago 6
I didn't hear any sound at all!!
ErichLancaster 6 months ago
Congratulations to you Bucky on 2000! Wish you all the best!
ErichLancaster 6 months ago
This has been flagged as spam show
You can subscribe to this playlist. Click on "Android Application Development Tutorials (thenewboston)" playlist link under my comment. Thumbs up to help others!
xGrowler 6 months ago in playlist Android Application Development Tutorials (thenewboston)
just wondering why does it have to be lower case?
pchelper102 6 months ago
@pchelper102 most coding is case sensitive
CODvorT3x 6 months ago
Your grandma is really awesome ;]
GeekyMe97 6 months ago 124
2000!!!!!!!!! Wheop!!!!!!!!!
MrJacobkip 6 months ago
and this video made the 2000 videos uploaded mark :)
jamesssssss 6 months ago 28
whoooooooooooop
mastermax7777 6 months ago
Comment removed
jaydeephora 6 months ago
weop
Gameryeah 6 months ago