From c882981a291b695af1fd2a88b87fb061810c101b Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Thu, 19 Jun 2014 16:13:16 +0200 Subject: [PATCH] minor changes --- .gitignore | 2 + src/ArtTestApp/Activity1.cs | 93 +++++++++++++++++++++++++++----- src/ArtTestApp/ArtTestApp.csproj | 13 +++++ 3 files changed, 95 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 5403ef31..7d8941dd 100644 --- a/.gitignore +++ b/.gitignore @@ -258,3 +258,5 @@ Thumbs.db /src/java/PluginInputStick/bin /src/java/PluginInputStick/icons + +/src/PluginSdkBinding/bin/Release diff --git a/src/ArtTestApp/Activity1.cs b/src/ArtTestApp/Activity1.cs index 4202a2c5..10968c43 100644 --- a/src/ArtTestApp/Activity1.cs +++ b/src/ArtTestApp/Activity1.cs @@ -1,18 +1,28 @@ using System; - +using System.Collections.Generic; using Android.App; using Android.Content; +using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; +using KeeChallenge; +using KeePassLib.Serialization; +using keepass2android; +using keepass2android.Io; namespace ArtTestApp { [Activity(Label = "ArtTestApp", MainLauncher = true, Icon = "@drawable/icon")] public class Activity1 : Activity { - + private ChallengeInfo _chalInfo; + private byte[] _challengeSecret; + private IOConnectionInfo _ioConnectionInfo; + private IOConnectionInfo _ioConnectionInfoOut; + private const int RequestCodeChallengeYubikey = 98; + protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); @@ -20,30 +30,87 @@ namespace ArtTestApp // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); + _ioConnectionInfo = new IOConnectionInfo() { Path = "/mnt/sdcard/keepass/keechallenge.xml" }; + _ioConnectionInfoOut = new IOConnectionInfo() { Path = "/mnt/sdcard/keepass/keechallengeOut.xml" }; + + // Get our button from the layout resource, // and attach an event to it FindViewById