diff --git a/client/Android/FreeRDPCore/res/values/strings.xml b/client/Android/FreeRDPCore/res/values/strings.xml index 780a7aa3e..810127219 100644 --- a/client/Android/FreeRDPCore/res/values/strings.xml +++ b/client/Android/FreeRDPCore/res/values/strings.xml @@ -1,7 +1,5 @@ - aFreeRDP - Yes No @@ -29,6 +27,8 @@ Manual Connections Active Sessions + + Connect to Computer Login No Servers @@ -38,10 +38,6 @@ Wrong Password Invalid Username Add Connection - - aFreeRDP - Connect to Computer - Remote Computers Host Label diff --git a/client/Android/FreeRDPCore/res/xml/advanced_settings.xml b/client/Android/FreeRDPCore/res/xml/advanced_settings.xml index 232953567..9158acf16 100644 --- a/client/Android/FreeRDPCore/res/xml/advanced_settings.xml +++ b/client/Android/FreeRDPCore/res/xml/advanced_settings.xml @@ -15,13 +15,17 @@ - + - + diff --git a/client/Android/FreeRDPCore/res/xml/bookmark_settings.xml b/client/Android/FreeRDPCore/res/xml/bookmark_settings.xml index f13358128..c49d4272a 100644 --- a/client/Android/FreeRDPCore/res/xml/bookmark_settings.xml +++ b/client/Android/FreeRDPCore/res/xml/bookmark_settings.xml @@ -19,26 +19,34 @@ - + - + - - + + - - + + diff --git a/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/presentation/BookmarkActivity.java b/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/presentation/BookmarkActivity.java index ce5a830a2..078852f3b 100644 --- a/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/presentation/BookmarkActivity.java +++ b/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/presentation/BookmarkActivity.java @@ -17,11 +17,13 @@ import com.freerdp.freerdpcore.domain.ManualBookmark; import com.freerdp.freerdpcore.services.BookmarkBaseGateway; import android.app.AlertDialog; +import android.content.ComponentName; import android.content.DialogInterface; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.os.Bundle; import android.preference.ListPreference; +import android.preference.Preference; import android.preference.PreferenceActivity; public class BookmarkActivity extends PreferenceActivity implements OnSharedPreferenceChangeListener @@ -137,8 +139,35 @@ public class BookmarkActivity extends PreferenceActivity implements OnSharedPref // register for preferences changed notification getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); + + // set the correct component names in our preferencescreen settings + setIntentComponentNames(); } + private void setIntentComponentNames() + { + // we set the component name for our sub-activity calls here because we don't know the package + // name of the main app in our library project. + ComponentName compName = new ComponentName(getPackageName(), BookmarkActivity.class.getName()); + String[] prefKeys = { + "bookmark.credentials", + "bookmark.screen", + "bookmark.performance", + "bookmark.advanced", + "bookmark.screen_3g", + "bookmark.performance_3g" + }; + + for (int i = 0; i < prefKeys.length; ++i) + { + Preference pref = findPreference(prefKeys[i]); + if (pref != null) + pref.getIntent().setComponent(compName); + } + + + } + @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { settings_changed = true; diff --git a/client/Android/aFreeRDP/res/values/strings.xml b/client/Android/aFreeRDP/res/values/strings.xml index 780a7aa3e..f0aa7c6af 100644 --- a/client/Android/aFreeRDP/res/values/strings.xml +++ b/client/Android/aFreeRDP/res/values/strings.xml @@ -1,179 +1,7 @@ aFreeRDP - - - Yes - No - Cancel - Continue - Login - Logout - - Exit - About - Help - New Connection - Settings - - Connection - Connect - Edit - Delete - - Keyboard - Function Keys - Touch Pointer - home - disconnect - - Manual Connections - Active Sessions - - Login - No Servers - Connecting ... - Disconnecting ... - Connection Lost - Wrong Password - Invalid Username - Add Connection aFreeRDP - Connect to Computer Remote Computers - - Host - Label - Host - Port - Credentials - Credentials - Username - Password - Domain - Settings - Screen - Screen Settings - Colors - - High Color (16 Bit) - True Color (24 Bit) - Highest Quality (32 Bit) - - - 16 - 24 - 32 - - Resolution - Automatic - Custom - - Automatic - Custom - 640x480 - 720x480 - 800x600 - 1024x768 - 1280x1024 - 1440x900 - 1920x1080 - 1920x1200 - - - automatic - custom - 640x480 - 720x480 - 800x600 - 1024x768 - 1280x1024 - 1440x900 - 1920x1080 - 1920x1200 - - Width - Height - Performance - Performance Settings - RemoteFX - Desktop Background - Font Smoothing - Desktop Composition - Window contents while dragging - Menu Animation - Visual Styles - Advanced - Advanced Settings - 3G Settings - 3G Screen - 3G Performance - Security - - Automatic - RDP - TLS - NLA - - - 0 - 1 - 2 - 3 - - Remote Program - Working Directory - Console Mode - - ******* - not set - User Interface - Hide Status Bar - Hide Zoom Controls - Swap Mouse Buttons - Invert Scrolling - Touch Pointer Auto Scroll - Show Dialog on Exit - Power Saving - Close idle Connections - Security - Accept all Certificates - Clear Certificate Cache - After %1$d Minutes - Disabled - - Connection Settings - Settings - aFreeRDP - FreeRDP for Android - RDP Connections - Help - About - - Cancel without saving? - Press "Cancel" to abort!\nPress "Continue" to specify the required fields! - Failed to establish a connection to the server! - - The screen settings have changed because the server does not support the settings you specified! - Deleted the certificate cache! - Failed to delete certificate cache! - - Verify Certificate - The identity of the remote computer cannot be verified. Do you want to connect anyway? - Please enter your credentials - Create Shortcut - Shortcut name: - Connecting ... - Logging in ... - About aFreeRDP - Version: %1$s\n\u00A9 2012 Thinstuff Technologies GmbH - Save Connection Settings? - Your connection settings have not been saved! Do you want to save them? - Save Connection? - Do you want to save any changes you made to the connection settings? - Do not ask again - Exit Application? - Are you sure you want to exit the application? - Delete Certificates? - Are you sure you want to delete all your cached Certificates?