How to do a digital signature in Android Native app


In my application there is a scenario like user needs to take a digital signature from the customer, then only he can able to punch the order. Here I tried with TouchAction class, but it is giving ‘org.openqa.selenium.interactions.InvalidCoordinatesException:’ exception [OR] ‘UiAutomator died while responding to command’ error. Please help me to get out of this.