diff --git a/src/KeePassLib2Android/KeePassLib2Android.csproj b/src/KeePassLib2Android/KeePassLib2Android.csproj
index 2ce28673..f100ebca 100644
--- a/src/KeePassLib2Android/KeePassLib2Android.csproj
+++ b/src/KeePassLib2Android/KeePassLib2Android.csproj
@@ -14,6 +14,7 @@
KeePassLib2Android
v6.0
True
+ 8482b288
True
@@ -54,6 +55,9 @@
+
+ ..\packages\Xamarin.Insights.1.11.3\lib\MonoAndroid10\Xamarin.Insights.dll
+
@@ -146,6 +150,7 @@
+
@@ -163,4 +168,11 @@
+
+
+
+ Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Aktivieren Sie die Wiederherstellung von NuGet-Paketen, um die fehlende Datei herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".
+
+
+
\ No newline at end of file
diff --git a/src/KeePassLib2Android/Kp2aLog.cs b/src/KeePassLib2Android/Kp2aLog.cs
index 4327a443..84728988 100644
--- a/src/KeePassLib2Android/Kp2aLog.cs
+++ b/src/KeePassLib2Android/Kp2aLog.cs
@@ -16,6 +16,7 @@ This file is part of Keepass2Android, Copyright 2013 Philipp Crocoll.
*/
using System;
+using System.Collections.Generic;
using System.IO;
using Android.Preferences;
using KeePassLib.Serialization;
@@ -68,5 +69,13 @@ namespace keepass2android
return (bool) _logToFile;
}
}
+ public static event EventHandler OnUnexpectedError;
+
+ public static void LogUnexpectedError(Exception exception)
+ {
+ Log(exception.ToString());
+ if (OnUnexpectedError != null)
+ OnUnexpectedError(null, exception);
+ }
}
}
\ No newline at end of file
diff --git a/src/KeePassLib2Android/Serialization/IOConnection.cs b/src/KeePassLib2Android/Serialization/IOConnection.cs
index 575bbf45..60cfe0b4 100644
--- a/src/KeePassLib2Android/Serialization/IOConnection.cs
+++ b/src/KeePassLib2Android/Serialization/IOConnection.cs
@@ -251,7 +251,7 @@ namespace KeePassLib.Serialization
Kp2aLog.Log(e.ToString());
} catch (Exception e)
{
- Kp2aLog.Log(e.ToString());
+ Kp2aLog.LogUnexpectedError(e);
Debug.Assert(false);
}
}
diff --git a/src/Kp2aBusinessLogic/Io/AndroidContentStorage.cs b/src/Kp2aBusinessLogic/Io/AndroidContentStorage.cs
index 6d24fa10..5bf85f3e 100644
--- a/src/Kp2aBusinessLogic/Io/AndroidContentStorage.cs
+++ b/src/Kp2aBusinessLogic/Io/AndroidContentStorage.cs
@@ -164,7 +164,7 @@ namespace keepass2android.Io
}
catch (Exception e)
{
- Kp2aLog.Log(e.ToString());
+ Kp2aLog.LogUnexpectedError(e);
return false;
}
diff --git a/src/Kp2aBusinessLogic/Io/IoUtil.cs b/src/Kp2aBusinessLogic/Io/IoUtil.cs
index 6098a0e5..74368c36 100644
--- a/src/Kp2aBusinessLogic/Io/IoUtil.cs
+++ b/src/Kp2aBusinessLogic/Io/IoUtil.cs
@@ -69,7 +69,7 @@ namespace keepass2android.Io
}
catch (Exception e)
{
- Kp2aLog.Log(e.ToString());
+ Kp2aLog.LogUnexpectedError(e);
return false;
}
diff --git a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
index 5c3bc088..962b5a25 100644
--- a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
+++ b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
@@ -14,6 +14,7 @@
Off
v6.0
False
+ 06ffb71c
true
@@ -53,6 +54,9 @@
+
+ ..\packages\Xamarin.Insights.1.11.3\lib\MonoAndroid10\Xamarin.Insights.dll
+
@@ -138,7 +142,17 @@
TwofishCipher
+
+
+
+
+
+
+ Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Aktivieren Sie die Wiederherstellung von NuGet-Paketen, um die fehlende Datei herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".
+
+
+