Rectangle 27 0

It has a sample of cutting a video which you can use in your application by downloading and including their Starter Edition pack. It's completely free but you'd have to register through and can be used in Android Studio, Eclipse and many other IDEs.

Open source example codes that includes the java files to trim/cut your video into segments. You can even compress the videos which can be done by standard Android SDK as well.

thanks. I have looked into this. I would prefer FFMPEG solution

ffmpeg - Trim Video Functionality in an android App - Stack Overflow

android ffmpeg trimming