How to upload Video on twitter using twitter android sdk


i want to upload video on twitter using android sdk. i found this link but i am not able to understand this. i have used volley library for posting data to server. i have used this link( to post data to server. and post following command=INIT&media_type=video/mp4&total_bytes=4430752 but it give me volley error. is there any one who use twitter video upload using above link or some other source.please help on it.