2. Some notes for this app
• This app is only for 2 streaming types:
audio/mpeg or audio/aacp
• This means this app only applies for MP3 or
AAC audio types
• The source stream doesn’t use both types
MP3 and AAC.It is only audio/mpeg or
audio/aacp
2/5/2017 @ 2014 YPY Productions
3. Step 1: Setup Project
• Import all projects in zip file
“AndroidMyRadio.zip” to eclipse
• Rename the package name of project
“AndroidMyRadio” to your package name by
click right mouse on it, select Android Tools ->
Rename Application Package(for examples:
com.ypyproductions.myradio)
• Note your package name for the next step
@ 2014 YPY Productions 3
5. Step 2: Configure Project
• Change to your app name, and copyright text
in res/values/strings.xml
2/5/2017 @ 2014 YPY Productions
6. Step 2: Configure Project
• Change to your background color in
res/values/colors.xml
2/5/2017 @ 2014 YPY Productions
7. Step 3: Set up stream
• Expand folder src of MyRadio ‘s project
• Expand package com.ypyproductions.myradio.constanst and
select IMyRadiosConstants.java
2/5/2017 @ 2014 YPY Productions
8. Step 3: Set up stream
• Enter the root url of stream
2/5/2017 @ 2014 YPY Productions
9. Step 3: Set up stream
• Enter your URL_STREAM: normally, it is same
as URL_ROOT_STREAM which configured on
previous slide
• If the stream from Icecast.This param will be
got by using .m3u file.For examples
– http://godsdjsradio.com:8080/ this is icecast
stream.After downloading .m3u file, you will get
the URL_STREAM:
http://godsdjsradio.com:8080/autodj
2/5/2017 @ 2014 YPY Productions
10. Step 3: Set up stream
2/5/2017 @ 2014 YPY Productions
11. Step 3: Set up stream
• With the stream from Shoutcast.
URL_STREAM is same as URL_ROOT_STREAM
• If your stream is not from Shoutcast or
Icecast.Please let URL_STREAM same as
URL_ROOT_STREAM
2/5/2017 @ 2014 YPY Productions
12. Step 3: Set up stream
2/5/2017 @ 2014 YPY Productions
13. Step 3: Set up stream
• Normally, you can use any streaming urls.But
it is the best to use the streaming url from
Shoutcast or Icecast.Because we can get the
title of song automatically.
2/5/2017 @ 2014 YPY Productions
14. Step 3: Set up stream
• Enter your
audio
streaming type
2/5/2017 @ 2014 YPY Productions
15. Step 3: Set up stream
• If your stream type is audio/mpeg, The
TYPE_AUDIO_STREAM will be “MP3”
• If your stream type is audio/aacp, The
TYPE_AUDIO_STREAM will be “AAC”
• Note:You must to enter this type.It is very
important to know it to switch the reasonable
library
2/5/2017 @ 2014 YPY Productions
16. Step 3: Set up stream
• Enter your
streaming
source
(Optional)
2/5/2017 @ 2014 YPY Productions
17. Step 3: Set up stream
• If your stream is from Shoutcast, The
TYPE_SOURCE_STREAM will be “Shoutcast”
• If your stream is from Icecast, The
TYPE_SOURCE_STREAM will be “Icecast”
• This param
• Note: This param is optional.If you don’t use
shoutcast or icecast server, you will not enter
it
2/5/2017 @ 2014 YPY Productions
18. Step 3: Set up stream
• Set up AUTO PLAY
• if AUTO_PLAY =true , your app will open
player automatically when start app
2/5/2017 @ 2014 YPY Productions
19. Step 4: Set up information
• Enter your information
2/5/2017 @ 2014 YPY Productions
20. Step 5: Setup Admob
• Enter your admob banner id and admob
intertestial id
2/5/2017 @ 2014 YPY Productions
21. Set 6: Translate Project To Your
Language
• Translate strings.xml in res/values folder
2/5/2017 @ 2014 YPY Productions
22. Set 6: Translate Project To Your
Language
• For examples:
<string name="title_confirm">Confirm</string>
You only allow to translate “Confirm” word.Dont
translate “title_confirm”
• With the string format for examples:
<string name="format_status_info">Status:%1$s</string>
You only allow to translate Status word and keep %1$s string
2/5/2017 @ 2014 YPY Productions
23. Step 7: Run Project
• After setting up project finishing, you can run
and install application.
• If you have any problem about this
project.Please send email to me.My email is
baodotrung@gmail.com
2/5/2017 @ 2014 YPY Productions
24. HOPE YOU ENJOY IT.THANK YOU
2/5/2017 @ 2014 YPY Productions