I have split a video file into two files 'part1' and 'part2' via Git bash. Both these files are individually unreadable. Now I need to concatenate these two files and then play the video. This works just fine via git bash but since I am very new to android, I can't seem to do it programmatically. I did come across an answer here which said to do something like this :
String[] command = {"ls","-al"};
ProcessBuilder builder = new ProcessBuilder(command);
builder.directory(new File(/ngs/app/abc));
p = builder.start();
However, I don't know how to write the command 'cat part1 part2 > new.mp4' using this technique. Any help would be great! Thanks!