From 96ccb0151c46c87b29127dde0afe6edbf048bdf3 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 14 Mar 2013 10:16:02 +0100 Subject: Add padding to a few fragments --- res/layout/about.xml | 38 ++++++++++++++++++++++++-------------- res/layout/faq.xml | 3 ++- res/layout/vpn_profile_list.xml | 19 ++++++++++++------- res/values/strings.xml | 2 +- res/values/untranslatable.xml | 4 ++-- 5 files changed, 41 insertions(+), 25 deletions(-) (limited to 'res') diff --git a/res/layout/about.xml b/res/layout/about.xml index e6abed96..09194631 100644 --- a/res/layout/about.xml +++ b/res/layout/about.xml @@ -1,7 +1,10 @@ + android:layout_height="wrap_content" + android:paddingLeft="@dimen/stdpadding" + android:paddingRight="@dimen/stdpadding" > + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + tools:ignore="SelectableText" /> + android:layout_height="wrap_content" + tools:ignore="SelectableText" /> + android:autoLink="all" + tools:ignore="SelectableText" /> - - + + + + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/bouncy_castle" + android:textAppearance="?android:attr/textAppearanceMedium" /> - + \ No newline at end of file diff --git a/res/layout/faq.xml b/res/layout/faq.xml index 11ca7015..354b467c 100644 --- a/res/layout/faq.xml +++ b/res/layout/faq.xml @@ -3,7 +3,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="@dimen/stdpadding" > + android:paddingLeft="@dimen/stdpadding" + android:paddingRight="@dimen/stdpadding" > + android:orientation="vertical" + android:paddingLeft="@dimen/stdpadding" + android:paddingRight="@dimen/stdpadding" > + android:layout_height="12sp" /> + android:layout_height="wrap_content" + tools:ignore="SelectableText" /> + android:layout_height="wrap_content" + tools:ignore="SelectableText" /> - - + android:layout_height="12sp" /> + OpenVPN Log Import OpenVPN configuration Battery consumption - In my personal tests the main reason for high battery consumption of OpenVPN are the keepalive packets. Most OpenVPN servers have a configuration directive like \'keepalive 10 60\' which translates to a keepalive packet from client to server and server to client every ten seconds. <p> While these packets are small and do not use much traffic, they keep the mobile radio network busy and increase the energy consumption. <p> This keepalive setting cannot be changed on the client. Only the system administrator of the OpenVPN can change the setting. <p> Unfortunately using a keepalive larger than 60 seconds with udp has problems with some NAT gateways which terminate the state for a connnection after a short timeout (60s in my tests). Using TCP with long keepalive timeout works but has the TCP over TCP problem. (See <a href=\"http://sites.inka.de/bigred/devel/tcp-tcp.html\">Why TCP Over TCP Is A Bad Ide</a>) + In my personal tests the main reason for high battery consumption of OpenVPN are the keepalive packets. Most OpenVPN servers have a configuration directive like \'keepalive 10 60\' which translates to a keepalive packet from client to server and server to client every ten seconds. <p> While these packets are small and do not use much traffic, they keep the mobile radio network busy and increase the energy consumption. (See also <a href="http://developer.android.com/training/efficient-downloads/efficient-network-access.html#RadioStateMachine">The Radio State Machine | Android Developers</a>) <p> This keepalive setting cannot be changed on the client. Only the system administrator of the OpenVPN can change the setting. <p> Unfortunately using a keepalive larger than 60 seconds with udp has problems with some NAT gateways which terminate the state for a connnection after a short timeout (60s in my tests). Using TCP with long keepalive timeout works but has the TCP over TCP problem. (See <a href=\"http://sites.inka.de/bigred/devel/tcp-tcp.html\">Why TCP Over TCP Is A Bad Ide</a>) The Android Tethering feature (over WiFi, USB or Bluetooth) and the VPNService API (used by this program) do not work together. For more details see the <a href=\"http://code.google.com/p/ics-openvpn/issues/detail?id=34\">issue #34</a> VPN and Tethering Connection retries diff --git a/res/values/untranslatable.xml b/res/values/untranslatable.xml index 1c858363..70ca6b7f 100644 --- a/res/values/untranslatable.xml +++ b/res/values/untranslatable.xml @@ -1,7 +1,7 @@ - Copyright 2012\nArne Schwabe <arne@rfc2549.org> + Copyright 2012–2013 Arne Schwabe <arne@rfc2549.org> Copyright © 2002–2010 OpenVPN Technologies, Inc. <sales@openvpn.net>\n "OpenVPN" is a trademark of OpenVPN Technologies, Inc.\n @@ -20,7 +20,7 @@ Unknown state Allows another app to control OpenVPN Bouncy Castle Crypto APIs - Copyright © 2000 - 2012 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) + Copyright © 2000–2012 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) 0 -- cgit v1.2.3