Spen palm rejection

Hi !

I have an Android app for free drawing.
Because Spen SDK is deprecated, I developed with HTML Canvas.
But I have a problem.
When I drawing a picture with my Spen on my hand(palm) touched at tablet screen, the drawing is maked a line from my hand to my Spen.
Is there any API(Samsung or Android or Web Browser) or method to prohibit hand touch when using Spen? (like Apple Palm rejection API)

Hello,
You can check out the following discussion on stackoverflow: