Upload video to Youtube via Android Studio

I am a new programmer in an Android studio.

I am trying to create a button that gets the location of a file and uploads it to my youtube account:

I managed to get the video directory in my Android code:

File mediaFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath()....) 

I added a button that calls the UploadToYoutube function.

Now I would like to upload it to my youtube account via the path to the file that I have.

Can someone guide me?

Any help appreciated!

+7
android android-studio youtube-api android-youtube-api
source share

All Articles