开发者

Write a own program for Signature Capture on Android

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开发者_JAVA技巧 of the android developer recommend to use TouchPaint.java and FingerPaint.java. So I start to implement with TouchPaint.java then I followed this Video Tutorials from YouTube. But I got the following errors

onTouchEvent on TouchPaint.java.

event.getHistoricalTouchMajor(j, i)

The method getHistoricalTouchMajor(int, int) is undefined for the type MotionEvent.

Write a own program for Signature Capture on Android

event.getTouchMajor(j)

The method getTouchMajor(int) is undefined for the type MotionEvent.

Write a own program for Signature Capture on Android

Please help me I've no idea how to solve those errors.


I think the Api level is too low so raise it to API level 9. API 9 is Android 2.3 so you won't be able to install this on 2.1 and 2.2 devices which is the majority of the Android install base.

Write a own program for Signature Capture on Android

Further more detail ::


Just as @Dk.nik mentioned, it's the problem of API level. So you might want to reconfig your Project to match.
On the menu Project->Properties, select Android from treeview, on the right pane, Android Build Target, select the correct the API level.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜