Use
String[] cmd={"-i",videoPath,"-ignore_loop","0","-i","/storage/emulated/0/Download/heart.gif","-i",audiopath,"-filter_complex","{1:v]format=yuva444p,scale="+1280+":"+-1+",setsar=1,rotate="+angle+":c=black@0:ow=rotw("+angle+"):oh=roth("+angle+") [rotate];[0:v][rotate] overlay="+0+":0:shortest=1[v]","-map","'[v]'","-map","2:a:0","-c:a","aac","-shortest","-y","/storage/emulated/0/Movies/watermarker_center14.mp4"};