Configure Android
To connect Android app with your youtube channel is you must edit file res/xml/remote_config_defaults.xml
There are two part you must change with your own,
CHANNEL & PLAYLIST
Tutorial to get CHANNEL_ID & PLAYLIST_ID --> http://blog.dream-space.web.id/?p=185
<?xml version="1.0" encoding="utf-8"?>
<defaultsMap>
<!-- Your Channel ID -->
<entry>
<key>channel_id</key>
<value>YOUR CHANNEL ID</value>
</entry>
<!-- Your Playlist ID -->
<entry>
<key>playlist_id</key>
<value>YOUR PLAYLIST ID</value>
</entry>
. . .
</defaultsMap>
Since version 3.2 we implement remote config to store Channel ID and Plaaylist ID, you can read page Remote Config here to see the step :
Remote ConfigAPI_KEY
Tutorial to get API_KEY --> http://blog.dream-space.web.id/?p=178
public class Constant {
. . .
/* replace with your own API_KEY */
public static String YOUTUBE_API_KEY = "YOUR API KEY";
. . .
}
Since version 3.2 we remove YOUTUBE API KEY from remote config to Constant because google not allow one app use multiple youtube api key
Last updated