How to change app name?
![]() |
| 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>
