android - How to upload video on youtube with title and description -


how upload video title , description via intent.i tried via intent example how upload video youtube in android? can set video.how set title , descriptions video?thanks.

here peace of code

 video videoforshare = mlistvideos.get(position);              contentvalues content = new contentvalues(4);             content.put(mediastore.video.videocolumns.date_added,                     system.currenttimemillis() / 1000);             content.put(mediastore.video.media.mime_type, "video/mp4");             content.put(mediastore.video.media.data, videoforshare.getvideoname());             contentresolver resolver = mcontext.getcontentresolver();             uri uri = resolver.insert(mediastore.video.media.internal_content_uri, content);              if (uri == null)                 uri = resolver.insert(mediastore.video.media.external_content_uri, content);              intent sharingintent = new intent(android.content.intent.action_send);             sharingintent.settype("video/*");             sharingintent.putextra(android.content.intent.extra_subject, "title");             sharingintent.putextra(android.content.intent.extra_stream, uri);              mcontext.startactivity(intent.createchooser(sharingintent, "upload video via: ")); 


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -