“Android Live TV”
![]() |
| “Android Live TV” |
By: Mohammad Zakaria Chowdhury
Thank you for purchasing the app. If you have any questions that are beyond the scope of this help file, please feel free to message me via my user page contact form here. Thanks so much!
Table of Contents
- Which Eclipse version is needed?
- How to open the project in Eclipse?
- How to change the package name?
- How to change app name?
- How to add a station / channel?
- How to change AdMob publisher id?
- How to enable/disable Ad?
- How to change 'About' section?
- How to add your Facebook page?
- How to add your Twitter page?
- Graphics
- App Showcase
- Rating
- Credits
Which Eclipse version is needed?
Latest Eclipse version is recommended, which can be downloaded from here:
http://developer.android.com/sdk/index.html
How to open the project in Eclipse?
Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next
Root Directory > Click Browse button & browse the project folder “Live TV/Source” > Select all 4 projects 'actionbar-library', 'LiveTV', 'VitamioBundle' & 'ZI'
After sucessfully importing the app, Right Click 'LiveTV' project from Package Explorer > Properties > Java Build Path > Order and Export > Check on 'Android Private Libraries' > OK
Then go to 'Project' Menu > Clean.. > Clean All Projects > OK
Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.
How to change the package name?
You can change it easily from Eclipse. Here are the steps:
Right Cilck 'LiveTV' project from Package Explorer > Application Tools > Rename Application Package > Finish.
How to change app name?
Open Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter your app name inside "app_name" string tag:
<string name="app_name">Android Live TV</string>
This will change both title inside the app & app icon name.
How to add a station / channel?
A station /channel needs following 4 information.
Station Name
Stream URL
Station Description
Station Image
Check the right image which highlights respected information of a station / channel.
To Add a station / channel you need following 3 steps.
A. Add Station Name:
Go to: Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter a new "item" tag pair with your station name inside "station_names" string array block:
<item>Your Channel Name Here</item>
B. Add Stream URL:
Go to: Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter a new "item" tag pair with your station name inside "station_urls" string array block:
<item>http://your-stream-address.com</item>
C. Add Station Description:
Go to: Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter a new "item" tag pair with your station name inside "station_detail" string array block:
<item>Your Channel Information Here....</item>
Important: If your new station name or station description contains special characters like quotation ("), apostrophe ('), ampersand (&), less than (<) & greater than (>), you have to replace these with following respectively:
" => \"
' => \'
& => &
< => <
> => >
D. Add Station Image:
Create a station image with a graphics software
Rename the image with a 'station_' prefix & a station number. If it's for 1st sation then station number will be 1, for 2nd station it will be 2 and so on. Example: "station_1.png", "station_2.png", "station_3.png" etc.
Drag the image and place it inside: Eclipse > LiveTV > res > drawable-mdpi
Note: If you do not have a station image then the app will display a default image for that station. To change default station image, replace /res/drawable-mdpi/station_default.png with your own graphics.
Also create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi, drawable-ldpi & drawable-xhdpi) with same file name as described above. Check here for more information:
Devices and Displays
Supporting Multiple Screens
How to change AdMob publisher id?
Open Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter your AdMob publisher id inside "admob_publisher_id" string tag:
<string name="admob_publisher_id">Your AdMob ID Here</string>
How to enable/disable Ad?
Open Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter 'false' inside "is_display_ad" string tag:
<string name="is_display_ad">false</string>
How to change 'About' section?
Go to: Eclipse > LiveTV > assets > html > about.html
Right click about.html > Open With > Text Editor
It will open into a text editor inside Eclipse, make your necessary changes & save
If you want to display an image, then place it inside /assets/html/images/ folder & add following code:
<img src='images/yourimage.png' />
How to add your Facebook page?
Open Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter your Facebook page name inside "facebook_id" string tag:
<string name="facebook_id">Your Facebook Page Name Here</string>
How to add your Twitter page?
Open Eclipse > LiveTV > res > values > strings.xml
Select 'strings.xml' tab next to 'Resources' tab
Enter your Twitter page name inside "twitter_id" string tag:
<string name="twitter_id">Your Twitter Page Name Here</string>
Graphics
You will find all buttons & station image into /res/drawable-mdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi, drawable-ldpi & drawable-xhdpi) with same file name found at drawable-mdpi folder. Check here for more information: Devices and Displays & Supporting Multiple Screens.
Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at CodeCanyon app detail page.
Mohammad Zakaria Chowdhury
Webcraft Bangladesh
Go To Table of Contents







