title: Write a own program for Signature Capture on Android
body: <p>I'm a beginner on android.Right now I'm developing a own application for Signature Capture on android. I already google several time. I found somethings.Most of the android developer recommend to use <strong>TouchPaint.java</strong> and <strong>FingerPaint.java</strong>. So I start to implement with <strong>TouchPaint.java</strong> then I followed this <a href="http://www.youtube.com/watch?v=iO4nWkZ5njk" rel="nofollow noreferrer">Video Tutorials</a> from YouTube. But I got the following errors </p>
  
  <p><strong>onTouchEvent</strong> on TouchPaint.java.</p>
  
  <pre><code>event.getHistoricalTouchMajor(j, i)
  </code></pre>
  
  <p>The method getHistoricalTouchMajor(int, int) is undefined for the type MotionEvent.
  <img src="https://i.stack.imgur.com/yzGu9.gif" alt="enter image description here"></p>
  
  <pre><code>event.getTouchMajor(j)
  </code></pre>
  
  <p>The method getTouchMajor(int) is undefined for the type MotionEvent.
  <img src="https://i.stack.imgur.com/leGsg.gif" alt="enter image description here"></p>
  
  <p>Please help me I've no idea how to solve those errors.</p>