• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Youtube Data API, channel infos.

Hi, i'm trying to develop one app for a youtube channel. This app will show the uploaded videos as a list (with some infos), show channel infos, trigger notification when a new video is uploaded and etc..

I'm a newbie in Android app development and i'm having trouble with the Youtube Data API... I saw the samples code from google, but when i copy it to my project and try to build it doesnt work at all...

Everything i did until now is just the basics and the designe (a part of it).

Do you guys have some app sample that does the samething i'm trying to do to help me?

Thanks.
 
I made some progress here, but now i need load the "client_secrets.json", but when i do the command "
getResourceAsStream("/client_secrets.json")", always return null.

The .json is inside "src/main/res" right now, but i tried in almost any other folder and changing the patch in code bellow but got no other result, just null exception ;/

Any help?

Code:
        // Load client secrets.
        Reader clientSecretReader = new InputStreamReader(Auth.class.getResourceAsStream("/client_secrets.json"));
        GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, clientSecretReader);
 
Back
Top Bottom