Menu

How to use with Android

LucianoGiuseppe

Import into your project the signature sdk, ancomment android code (see TODO tasks) and insert a this linear layout into your layout view:

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/inputDraw"
android:layout_width="fill_parent"
android:layout_height="400px"
android:orientation="horizontal" >
</LinearLayout>

Then in activity java code insert this code:

LinearLayout ll = (LinearLayout) findViewById(R.id.inputDraw);
SignatureAndroidView drawingPanel = new SignatureAndroidView(getApplicationContext());
ll.addView(drawingPanel);

The use the drawingPanel object to get the signature.



To use save signature on internal storage or on external, you must set the permission into manifest xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.