[mono-android] Signature Capture

Andrew Sinclair andrew at magic5software.com
Wed Jan 18 20:21:00 UTC 2012


Nikoli,

You should be fine with Mono for Android, the main things you'll need to
watch out for are "the Android way of doing things" as opposed to the
"Windows Forms way of doing things". That would apply if you were using Java
and Eclipse, you'd still need to learn about the different terminology and
paradigms that Android has in comparison to Windows.

Mono for Android gives you access to the core Android SDK classes, things
like View (read "Control" ish) and Activity (read "Form" ish) in C# to the
same extent that you'd be using them from Java.

In terms of signature capture, in the Windows world you're probably using
things like a Control's OnMouseDown override, along with MouseEventArgs.

With Mono for Android you don't have exactly the same methods or event args,
but you have Android.Views.MotionEvent available within a View's
OnTouchEvent and you can test for MotionEventActions.Down/Up/etc.

You'll need to re-work some code but the bulk of it should carry over
between the platforms.

At various times over the last year or so it's been pretty painful as Mono
for Android has matured, but you're lucky that's it now a stable and very
powerful platform - I wouldn't hesitate to recommend it for cross platform
C# development.

Cheers,

Andy



-----Original Message-----
From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of nikoli
Sent: 18 January 2012 16:25
To: monodroid at lists.ximian.com
Subject: [mono-android] Signature Capture

I was wondering if any one had any insight on signature capture using
monodroid. I am in the evaluation process and monodroid looks like it would
be extremely helpful in porting our application to Android. I have an
existing windows forms application that asks a few questions, prompts for a
signature and uploads the answers to a website using a web service. A quick
look at the documentation seems make all of this possible except for the
signature. Any insight would be greatly appreciated. 

Thanks,
~Nick

--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Signature-Capture-tp5155266p51
55266.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



More information about the Monodroid mailing list