From 2f1795d9a300978072821c0ef2bda8ea3872ee71 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Thu, 9 May 2013 23:58:48 +0200 Subject: [PATCH] added SendProfile to the android test app, fixed some bugs --- ClientServerLib/AndroidRemote/MainActivity.cs | 68 +++++++++++++------ .../Resources/Resource.designer.cs | 66 ++++++++++-------- .../AndroidRemote/Resources/layout/Main.axml | 33 +++++---- .../Resources/values/Strings.xml | 8 ++- Vocaluxe/Base/CProfiles.cs | 1 + Vocaluxe/Base/Server/CVocaluxeServer.cs | 3 +- 6 files changed, 109 insertions(+), 70 deletions(-) diff --git a/ClientServerLib/AndroidRemote/MainActivity.cs b/ClientServerLib/AndroidRemote/MainActivity.cs index ff59e44b..73a17639 100644 --- a/ClientServerLib/AndroidRemote/MainActivity.cs +++ b/ClientServerLib/AndroidRemote/MainActivity.cs @@ -16,15 +16,14 @@ using Vocaluxe.Base.Server; namespace AndroidRemote { - [Activity (Label = "Vocaluxe Remote", MainLauncher = true)] + [Activity (Label = "Vocaluxe Remote", MainLauncher = true, ConfigurationChanges=Android.Content.PM.ConfigChanges.Orientation)] public class Activity1 : Activity { CClient client = new CClient(); Button bConnect; Button bLogin; - Button bUp; - Button bDown; Button bSendAvatar; + Button bSendProfile; bool loggedIn; byte[] fileBytes; @@ -32,6 +31,8 @@ namespace AndroidRemote Java.IO.File file; Java.IO.File dir; System.IO.FileStream fs; + + bool sendProfile; protected override void OnCreate (Bundle bundle) { @@ -47,21 +48,14 @@ namespace AndroidRemote bLogin = FindViewById