Compare commits
29 Commits
android-0.
...
android-0.
Author | SHA1 | Date | |
---|---|---|---|
53c7770e4e | |||
![]() |
21274f0335 | ||
![]() |
4ccf3e713d | ||
![]() |
48f84f1a1b | ||
![]() |
eb4ae2c66d | ||
![]() |
6d340dc056 | ||
![]() |
f312b7c6f1 | ||
![]() |
a42bd73de3 | ||
![]() |
4424392bdc | ||
![]() |
bfe71213f8 | ||
![]() |
cd2a12c8ed | ||
![]() |
4ca2ed756f | ||
![]() |
a4abfd8fb8 | ||
![]() |
9d754c29ae | ||
![]() |
0101e63bce | ||
![]() |
75fe8bfbe0 | ||
![]() |
806f6edbf1 | ||
![]() |
767ff4f3d2 | ||
![]() |
07fafb03b6 | ||
![]() |
e98f86b29a | ||
![]() |
18bc4f141d | ||
![]() |
a3792bad7a | ||
![]() |
745bd3fa94 | ||
![]() |
97692a4635 | ||
![]() |
3fe7575dab | ||
![]() |
a7fc5090f3 | ||
![]() |
6154f64120 | ||
![]() |
0e5ca23732 | ||
![]() |
c47e7dab31 |
14
.classpath
Normal file
14
.classpath
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/i2p_sdk"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/i2p_router"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/i2ptunnel"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/BOB"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/addressbook"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
@@ -22,3 +22,11 @@ _jsp\.java$
|
||||
~$
|
||||
/build/
|
||||
/classes/
|
||||
|
||||
# Android-specific ignores
|
||||
^bin
|
||||
^gen
|
||||
^routerjars/bin
|
||||
^routerjars/gen
|
||||
AndroidManifest.xml
|
||||
local.properties
|
||||
|
33
.project
Normal file
33
.project
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>I2P_Android</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
11
.tx/config
Normal file
11
.tx/config
Normal file
@@ -0,0 +1,11 @@
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
lang_map = tr_TR: tr
|
||||
|
||||
[I2P.android]
|
||||
file_filter = res/values-<lang>/strings.xml
|
||||
source_file = res/values/strings.xml
|
||||
source_lang = en
|
||||
type = ANDROID
|
||||
minimum_perc = 50
|
||||
|
@@ -8,9 +8,11 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
<uses-sdk android:minSdkVersion="8" />
|
||||
<uses-sdk android:minSdkVersion="8"
|
||||
android:targetSdkVersion="18" />
|
||||
|
||||
<application android:label="@string/app_name"
|
||||
android:theme="@style/Theme.AppCompat"
|
||||
android:icon="@drawable/ic_launcher_itoopie" >
|
||||
<service android:name=".service.RouterService"
|
||||
android:label="@string/app_name"
|
||||
@@ -20,7 +22,6 @@
|
||||
<activity android:name=".activity.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@drawable/ic_launcher_itoopie"
|
||||
android.theme="@android:style/Theme.NoTitleBar"
|
||||
android:launchMode="singleTop" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
@@ -29,21 +30,17 @@
|
||||
</activity>
|
||||
<activity android:name=".activity.NewsActivity"
|
||||
android:label="I2P News"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android.theme="@android:style/Theme.NoTitleBar" >
|
||||
android:configChanges="orientation|keyboardHidden" >
|
||||
</activity>
|
||||
<activity android:name=".activity.TextResourceActivity"
|
||||
android:label="I2P Information"
|
||||
android.theme="@android:style/Theme.NoTitleBar" >
|
||||
android:label="I2P Information" >
|
||||
</activity>
|
||||
<activity android:name=".activity.LicenseActivity"
|
||||
android:label="I2P License Information"
|
||||
android.theme="@android:style/Theme.NoTitleBar" >
|
||||
android:label="I2P License Information" >
|
||||
</activity>
|
||||
<activity android:name=".activity.WebActivity"
|
||||
android:label="I2P Web Browser"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android.theme="@android:style/Theme.NoTitleBar" >
|
||||
android:configChanges="orientation|keyboardHidden" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
@@ -53,27 +50,22 @@
|
||||
</activity>
|
||||
<activity android:name=".activity.SettingsActivity"
|
||||
android:label="I2P Settings"
|
||||
android.theme="@android:style/Theme.NoTitleBar"
|
||||
android:launchMode="singleTop" >
|
||||
</activity>
|
||||
<activity android:name=".activity.AddressbookSettingsActivity"
|
||||
android:label="I2P Addressbook Settings"
|
||||
android.theme="@android:style/Theme.NoTitleBar"
|
||||
android:launchMode="singleTop" >
|
||||
</activity>
|
||||
<activity android:name=".activity.AddressbookActivity"
|
||||
android:label="I2P Address Book"
|
||||
android.theme="@android:style/Theme.NoTitleBar"
|
||||
android:label="Addressbook"
|
||||
android:launchMode="singleTop" >
|
||||
</activity>
|
||||
<activity android:name=".activity.LogActivity"
|
||||
android:label="I2P Logs"
|
||||
android.theme="@android:style/Theme.NoTitleBar" >
|
||||
android:label="I2P Logs" >
|
||||
</activity>
|
||||
<activity android:name=".activity.PeersActivity"
|
||||
android:label="I2P Peers and Transport Status"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android.theme="@android:style/Theme.NoTitleBar"
|
||||
android:launchMode="singleTop" >
|
||||
</activity>
|
||||
</application>
|
||||
|
21
README.txt
21
README.txt
@@ -29,11 +29,15 @@ Instructions:
|
||||
|
||||
# now go to the available packages tab, check the box and click refresh,
|
||||
# and download an SDK Platform
|
||||
# Since I2P is configured to run on 2.2 or higher
|
||||
# (API 8) download at least that one. Otherwise you must change the
|
||||
# target in project.properties from android-8 to andriod-x
|
||||
# Since I2P is targeted at 4.3 (API 18)
|
||||
# download at least that one. Otherwise you must change the
|
||||
# target in project.properties from android-18 to andriod-x
|
||||
# where x is the API version.
|
||||
|
||||
# I2P is configured to run on 2.2 (API 8) or higher using the
|
||||
# Android Support Library, so download that as well
|
||||
# (it's under "Extras").
|
||||
|
||||
# To run the debugger (ddms) you also need to download the
|
||||
# "Android SDK Platform-Tools" package from the GUI updater.
|
||||
|
||||
@@ -42,11 +46,18 @@ Instructions:
|
||||
# sdk.dir=/path/to/your/android-sdk-linux
|
||||
# Copy this file to the routerjars/ directory, it is needed in both places.
|
||||
|
||||
# If your SDK is not in ../android-sdk-linux/ then you must
|
||||
# override the location of the Android Support Library. Add
|
||||
# the following line to local.properties
|
||||
# do NOT use an absolute path
|
||||
# android.library.reference.2=path/to/your/android-sdk-linux/extras/android/support/v7/appcompat
|
||||
# Don't add it to the local.properties in the routerjars/ directory.
|
||||
|
||||
# DO NOT create a new project or anything. It's all set up right here for you.
|
||||
|
||||
# Create the android 2.2 (API 8) virtual device
|
||||
# Create the android 4.3 (API 18) virtual device
|
||||
# (don't make a custom hardware profile)
|
||||
../android-sdk-linux/tools/android create avd --name i2p --target 8
|
||||
../android-sdk-linux/tools/android create avd --name i2p --target 18
|
||||
|
||||
# then run the emulator:
|
||||
# This may take a LONG time the first time (half an hour or more)...
|
||||
|
@@ -1,5 +1,4 @@
|
||||
application-package=net.i2p.router
|
||||
key.store=${user.home}/.android/${application-package}.keystore
|
||||
key.alias=${application-package}
|
||||
android.library.reference.1=./routerjars
|
||||
key.store.password=android
|
||||
|
@@ -40,16 +40,21 @@
|
||||
major = values[0];
|
||||
minor = "0";
|
||||
release = "0";
|
||||
point = "";
|
||||
if(dots > 0) {
|
||||
minor = values[1];
|
||||
if(dots > 1) {
|
||||
release = values[2];
|
||||
if (dots > 2) {
|
||||
point = "." + values[3];
|
||||
}
|
||||
}
|
||||
}
|
||||
project.setNewProperty("CORE", major + "." + minor +"." + release);
|
||||
project.setNewProperty("CORE", major + "." + minor + "." + release + point);
|
||||
project.setNewProperty("CORE.major", major);
|
||||
project.setNewProperty("CORE.minor", minor);
|
||||
project.setNewProperty("CORE.release", release);
|
||||
project.setNewProperty("CORE.point", point);
|
||||
|
||||
]]>
|
||||
</scriptdef>
|
||||
@@ -71,17 +76,19 @@
|
||||
<attribute name="major"/>
|
||||
<attribute name="minor"/>
|
||||
<attribute name="release"/>
|
||||
<attribute name="point"/>
|
||||
<attribute name="routerbuild"/>
|
||||
<attribute name="androidbuild"/>
|
||||
<attribute name="sdk"/>
|
||||
<![CDATA[
|
||||
Major = attributes.get("major") + ".";
|
||||
Minor = attributes.get("minor") + ".";
|
||||
Release = attributes.get("release") +"-";
|
||||
Release = attributes.get("release");
|
||||
Point = attributes.get("point") + "-";
|
||||
Routerbuild = attributes.get("routerbuild") +"_b";
|
||||
Androidbuild = attributes.get("androidbuild") +"-API";
|
||||
SDK = attributes.get("sdk");
|
||||
project.setNewProperty(attributes.get("prefix") + ".full", Major + Minor + Release + Routerbuild + Androidbuild + SDK);
|
||||
project.setNewProperty(attributes.get("prefix") + ".full", Major + Minor + Release + Point + Routerbuild + Androidbuild + SDK);
|
||||
/*
|
||||
* Android version code is an integer.
|
||||
* So we have 31 bits.
|
||||
@@ -95,6 +102,8 @@
|
||||
* beware of that if you release multiple builds using the
|
||||
* same ROUTERBUILD, or clear it if you update ROUTERBUILD
|
||||
* Subtract 1 from ANDROIDBUILD since it starts at 1 after distclean.
|
||||
*
|
||||
* WARNING - 4th core field ("point") is ignored. Be sure to increment android build number.
|
||||
*/
|
||||
iMajor = ((parseInt(Major) % 16) << 27);
|
||||
iMinor = ((parseInt(Minor) % 256) << 19);
|
||||
@@ -323,11 +332,14 @@
|
||||
<normalizeitem name="buildversion" value="${buildversionfile}" />
|
||||
<echo message="buildversion `${buildversion}`" />
|
||||
|
||||
<!--
|
||||
<split value="${target}" sep="-" prefix="gettarget"/>
|
||||
-->
|
||||
<property name="gettarget.1" value="${minSdkVersion}" />
|
||||
<echo message="API${gettarget.1}" />
|
||||
<!-- generate the version infos that we will want to see -->
|
||||
<generateversions prefix="zap" major="${CORE.major}"
|
||||
minor="${CORE.minor}" release="${CORE.release}"
|
||||
minor="${CORE.minor}" release="${CORE.release}" point="${CORE.point}"
|
||||
routerbuild="${ROUTERBUILD}" androidbuild="${buildversion}"
|
||||
sdk="${gettarget.1}"/>
|
||||
|
||||
|
@@ -8,4 +8,13 @@
|
||||
# project structure.
|
||||
|
||||
# Project target.
|
||||
target=android-8
|
||||
target=android-18
|
||||
# Must match that in AndroidManifest.xml.in
|
||||
minSdkVersion=8
|
||||
# I2P router libs
|
||||
android.library.reference.1=./routerjars
|
||||
# Android Support Library
|
||||
# If the relative path differs in your local environment,
|
||||
# override this in the base local.properties
|
||||
# (not routerjars/local.properties)
|
||||
android.library.reference.2=../android-sdk-linux/extras/android/support/v7/appcompat
|
||||
|
BIN
res/drawable-hdpi/ic_content_new.png
Normal file
BIN
res/drawable-hdpi/ic_content_new.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-mdpi/ic_content_new.png
Normal file
BIN
res/drawable-mdpi/ic_content_new.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xhdpi/ic_content_new.png
Normal file
BIN
res/drawable-xhdpi/ic_content_new.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
8
res/layout/activity_addressbook.xml
Normal file
8
res/layout/activity_addressbook.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/addressbook_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
|
||||
</ListView>
|
@@ -8,7 +8,7 @@
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
@@ -18,36 +18,30 @@
|
||||
android:text="Addressbook Settings"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
<FrameLayout
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Subscriptions"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/subscriptions_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:inputType="textMultiLine"
|
||||
android:maxLines="@integer/min_lines"
|
||||
android:minLines="@integer/min_lines" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_save_subscriptions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Subscriptions"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/subscriptions_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:inputType="textMultiLine"
|
||||
android:maxLines="@integer/min_lines"
|
||||
android:minLines="@integer/min_lines" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_save_subscriptions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Save subscriptions.txt" />
|
||||
|
||||
</FrameLayout>
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Save subscriptions.txt" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
android:padding="10px"
|
||||
android:scrollbarStyle="outsideInset"
|
||||
>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -21,7 +21,7 @@
|
||||
android:id="@+id/textView4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Statistics"
|
||||
android:text="@string/label_statistics"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
<TextView
|
||||
@@ -33,21 +33,21 @@
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Main Controls"
|
||||
android:text="@string/label_main_controls"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/router_start_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="68dp"
|
||||
android:text="Start Router"
|
||||
android:text="@string/action_router_start"
|
||||
android:drawableLeft="@drawable/start_router_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/router_quit_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="68dp"
|
||||
android:text="Stop Router"
|
||||
android:text="@string/action_router_stop"
|
||||
android:drawableLeft="@drawable/stop_router_icon" />
|
||||
<!--
|
||||
<Button
|
||||
@@ -62,91 +62,91 @@
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="I2P Tools"
|
||||
android:text="@string/label_tools"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/addressbook_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Address Book"
|
||||
android:text="@string/label_addressbook"
|
||||
android:drawableLeft="@drawable/addressbook_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/logs_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Logs"
|
||||
android:text="@string/label_logs"
|
||||
android:drawableLeft="@drawable/log_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/error_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Error Logs"
|
||||
android:text="@string/label_error_logs"
|
||||
android:drawableLeft="@drawable/error_log_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/peers_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Peers"
|
||||
android:text="@string/label_peers_status"
|
||||
android:drawableLeft="@drawable/peers_icon" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Information and pages"
|
||||
android:text="@string/label_info_and_pages"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/welcome_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Welcome\nPage"
|
||||
android:text="@string/label_welcome_page"
|
||||
android:drawableLeft="@drawable/information_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/news_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="News"
|
||||
android:text="@string/label_news"
|
||||
android:drawableLeft="@drawable/information_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/releasenotes_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Release Notes"
|
||||
android:text="@string/label_release_notes"
|
||||
android:drawableLeft="@drawable/information_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/licenses_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Licenses"
|
||||
android:text="@string/label_licenses"
|
||||
android:drawableLeft="@drawable/information_icon" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Non Anonymous Information"
|
||||
android:text="@string/label_nonanon_info"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/website_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Web Site (non-anon)"
|
||||
android:text="@string/label_website_nonanon"
|
||||
android:drawableLeft="@drawable/nonanon_info_icon" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/faq_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="FAQ (non-anon)"
|
||||
android:text="@string/label_faq_nonanon"
|
||||
android:drawableLeft="@drawable/nonanon_info_icon" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -3,14 +3,13 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10px"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/news_status"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="Latest I2P News"
|
||||
android:text="@string/label_news_status"
|
||||
/>
|
||||
<WebView
|
||||
android:id="@+id/news_webview"
|
||||
|
@@ -4,14 +4,13 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_margin="2dp"
|
||||
android:padding="10px"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/peers_status"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="Peers"
|
||||
android:text="@string/label_peers_status"
|
||||
/>
|
||||
<WebView
|
||||
android:id="@+id/peers_webview"
|
||||
|
@@ -3,14 +3,15 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10px"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/text_resource_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:scrollbars="vertical"
|
||||
android:text="Release Notes"
|
||||
android:text="@string/label_release_notes"
|
||||
android:textColor="@android:color/secondary_text_dark"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
@@ -3,14 +3,13 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10px"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/browser_status"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="Latest I2P News"
|
||||
android:text="@string/label_news_status"
|
||||
/>
|
||||
<WebView
|
||||
android:id="@+id/browser_webview"
|
||||
|
12
res/menu/activity_addressbook_actions.xml
Normal file
12
res/menu/activity_addressbook_actions.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:i2pandroid="http://schemas.android.com/apk/res-auto" >
|
||||
<!-- Add, should appear as action buttons --><!--
|
||||
<item android:id="@+id/action_add_to_addressbook"
|
||||
android:title="@string/action_add"
|
||||
android:icon="@drawable/ic_content_new"
|
||||
i2pandroid:showAsAction="ifRoom" />-->
|
||||
<!-- Settings, should always be in the overflow -->
|
||||
<item android:id="@+id/action_addressbook_settings"
|
||||
android:title="@string/menu_settings"
|
||||
i2pandroid:showAsAction="never" /></menu>
|
@@ -1,25 +1,25 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:title="Start Router"
|
||||
<item android:title="@string/action_router_start"
|
||||
android:id="@+id/menu_start"
|
||||
android:icon="@drawable/ic_menu_play_clip" >
|
||||
</item>
|
||||
<item android:title="Stop Router"
|
||||
<item android:title="@string/action_router_stop"
|
||||
android:id="@+id/menu_stop"
|
||||
android:icon="@android:drawable/ic_menu_close_clear_cancel" >
|
||||
</item>
|
||||
<item android:title="Address Book"
|
||||
<item android:title="@string/label_addressbook"
|
||||
android:id="@+id/menu_addressbook"
|
||||
android:icon="@drawable/ic_menu_friendslist" >
|
||||
</item>
|
||||
<item android:title="Reload"
|
||||
<item android:title="@string/action_reload"
|
||||
android:id="@+id/menu_reload"
|
||||
android:icon="@drawable/ic_menu_refresh" >
|
||||
</item>
|
||||
<item android:title="I2P Home"
|
||||
<item android:title="@string/label_home"
|
||||
android:id="@+id/menu_home"
|
||||
android:icon="@drawable/ic_menu_home" >
|
||||
</item>
|
||||
<item android:title="Settings"
|
||||
<item android:title="@string/menu_settings"
|
||||
android:id="@+id/menu_settings"
|
||||
android:icon="@android:drawable/ic_menu_preferences" >
|
||||
</item>
|
||||
|
62
res/values-es/strings.xml
Normal file
62
res/values-es/strings.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<resources>
|
||||
<string name="app_name">I2P</string>
|
||||
<string name="welcome_new_install">¡Bienvenido a I2P! Esta aplicación es un software ALFA y no proporciona un fuerte anonimato. Por favor, lea las notas de veriones y la información sobre la licencia.</string>
|
||||
<string name="welcome_new_version">Nueva versión instalada. Por favor lea las notas de versiones. Versión:</string>
|
||||
<string name="label_home">Inicio de I2P</string>
|
||||
<string name="label_statistics">Estadísticas</string>
|
||||
<string name="label_main_controls">Controles Principales</string>
|
||||
<string name="label_tools">Herramientas de I2P</string>
|
||||
<string name="label_addressbook">Libreta de direcciones</string>
|
||||
<string name="label_logs">Registros</string>
|
||||
<string name="label_error_logs">Registros de Errores</string>
|
||||
<string name="label_info_and_pages">Información y páginas</string>
|
||||
<string name="label_welcome_page">Página de Bienvenida</string>
|
||||
<string name="label_news">Noticias</string>
|
||||
<string name="label_news_status">Últimas noticias sobre I2P</string>
|
||||
<string name="label_peers_status">Pares</string>
|
||||
<string name="label_release_notes">Notas de Versiones</string>
|
||||
<string name="label_licenses">Licencias</string>
|
||||
<string name="label_nonanon_info">Información no anónima</string>
|
||||
<string name="label_website_nonanon">Página web (no anónima)</string>
|
||||
<string name="label_faq_nonanon">FAQ (no anónimo)</string>
|
||||
<string name="action_add">Añadir</string>
|
||||
<string name="action_router_start">Iniciar el Ruter</string>
|
||||
<string name="action_router_stop">Apagar el Ruter</string>
|
||||
<string name="action_reload">Recargar</string>
|
||||
<string name="menu_settings">Preferencias</string>
|
||||
<string name="settings_enable">Activar</string>
|
||||
<string name="settings_label_subscriptions">Librete de direcciones I2P</string>
|
||||
<string name="settings_desc_subscriptions">URLs de subscripción</string>
|
||||
<string name="settings_label_bandwidth">Red y ancho de banda</string>
|
||||
<string name="settings_label_bw_inbound">Velocidad de entrada</string>
|
||||
<string name="settings_desc_bw_inbound">Velocidad máxima de entrada</string>
|
||||
<string name="settings_label_bw_outbound">Velocidad de salida</string>
|
||||
<string name="settings_desc_bw_outbound">Velocidad máxima de salida</string>
|
||||
<string name="settings_label_hiddenMode">Participación</string>
|
||||
<string name="settings_desc_hiddenMode">Desactivar modo oculto</string>
|
||||
<string name="settings_label_maxPartTunnels">Máximo número de túneles participantes</string>
|
||||
<string name="settings_desc_maxPartTunnels">Máximo núemero de túneles en los que participar (por defecto=20)</string>
|
||||
<string name="settings_dialog_maxPartTunnels">Máximo número de túneles en los que participar</string>
|
||||
<string name="settings_label_sharePercent">Porcentaje de participación</string>
|
||||
<string name="settings_desc_sharePercent">Porcentaje y ancho de banda a compartir (por defecto=80)</string>
|
||||
<string name="settings_dialog_sharePercent">Procentaje del ancho de banda a compartir</string>
|
||||
<string name="settings_desc_upnp">Abrir los puertos del cortafuegos automáticamente</string>
|
||||
<string name="settings_label_advanced">Avanzado</string>
|
||||
<string name="settings_label_transports">Trnasportes</string>
|
||||
<string name="settings_label_maxConns">Máximo número de conexiones</string>
|
||||
<string name="settings_label_i2cp">Interfaz de I2CP</string>
|
||||
<string name="settings_desc_i2cp">Escuchar en el puerto 7654</string>
|
||||
<string name="settings_label_exploratory_pool">Grupo exploratiorio</string>
|
||||
<string name="settings_desc_exploratory_pool">Parámetros del Túnel</string>
|
||||
<string name="settings_label_expl_inbound">Túneles de entrada</string>
|
||||
<string name="settings_label_expl_outbound">Túneles de salida</string>
|
||||
<string name="settings_label_expl_length">Tamaño</string>
|
||||
<string name="settings_desc_expl_length">Cuantos saltos usar</string>
|
||||
<string name="settings_label_expl_lengthVariance">Variación del salto</string>
|
||||
<string name="settings_desc_expl_lengthVariance">Cuántos saltos se añadirán aleatoriamente.</string>
|
||||
<string name="settings_label_expl_quantity">Cantidad</string>
|
||||
<string name="settings_desc_expl_quantity">Cuantos túneles</string>
|
||||
<string name="settings_label_expl_backupQuantity">Cantidad de respaldos</string>
|
||||
<string name="settings_desc_expl_backupQuantity">Cuantos túneles de respaldo</string>
|
||||
</resources>
|
62
res/values-tr/strings.xml
Normal file
62
res/values-tr/strings.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<resources>
|
||||
<string name="app_name">I2P</string>
|
||||
<string name="welcome_new_install">I2P dünyasına hoş geldiniz. Bu uygulama henüz ALPHA geliştirme düzeyindedir ve yaygın olarak herkese açılmamıştır. Lütfen notları ve lisans bilgilerini okuyun.</string>
|
||||
<string name="welcome_new_version">Yeni sürüm yüklendi. Lütfen yayım notlarını okuyun. Sürüm:</string>
|
||||
<string name="label_home">I2P Anasayfası</string>
|
||||
<string name="label_statistics">İstatistikler</string>
|
||||
<string name="label_main_controls">Temel Denetimler</string>
|
||||
<string name="label_tools">I2P Araçları</string>
|
||||
<string name="label_addressbook">Adres defteri</string>
|
||||
<string name="label_logs">Günlükler</string>
|
||||
<string name="label_error_logs">Hata Günlükleri</string>
|
||||
<string name="label_info_and_pages">Bilgiler ve sayfalar</string>
|
||||
<string name="label_welcome_page">Karşılama Sayfası</string>
|
||||
<string name="label_news">Haberler</string>
|
||||
<string name="label_news_status">Son I2P Haberleri</string>
|
||||
<string name="label_peers_status">Eşler</string>
|
||||
<string name="label_release_notes">Yayım Notları</string>
|
||||
<string name="label_licenses">Lisanslar</string>
|
||||
<string name="label_nonanon_info">Herkese Açık Olmayan Bilgiler</string>
|
||||
<string name="label_website_nonanon">Web Sitesi (herkese açık değil)</string>
|
||||
<string name="label_faq_nonanon">SSS (herkese açık değil)</string>
|
||||
<string name="action_add">Ekleyin</string>
|
||||
<string name="action_router_start">Yönelticiyi Başlatın</string>
|
||||
<string name="action_router_stop">Yönelticiyi Durdurun</string>
|
||||
<string name="action_reload">Yeniden Yükleyin</string>
|
||||
<string name="menu_settings">Ayarlar</string>
|
||||
<string name="settings_enable">Etkinleştirin</string>
|
||||
<string name="settings_label_subscriptions">I2P Adres Defteri</string>
|
||||
<string name="settings_desc_subscriptions">Abonelik İnternet Adresleri</string>
|
||||
<string name="settings_label_bandwidth">Bant genişliği ve ağ</string>
|
||||
<string name="settings_label_bw_inbound">Geliş hızı</string>
|
||||
<string name="settings_desc_bw_inbound">En fazla geliş hızı</string>
|
||||
<string name="settings_label_bw_outbound">Gidiş hızı</string>
|
||||
<string name="settings_desc_bw_outbound">En fazla gidiş hızı</string>
|
||||
<string name="settings_label_hiddenMode">Katılım</string>
|
||||
<string name="settings_desc_hiddenMode">Gizli kipi kapatın</string>
|
||||
<string name="settings_label_maxPartTunnels">Katılınacak en fazla tünel sayısı </string>
|
||||
<string name="settings_desc_maxPartTunnels">Katılınacak en fazla tünel sayısı (varsayılan=20)</string>
|
||||
<string name="settings_dialog_maxPartTunnels">Katılınacak en fazla tünel sayısı </string>
|
||||
<string name="settings_label_sharePercent">Paylaşım yüzdei</string>
|
||||
<string name="settings_desc_sharePercent">Paylaşılan bant genişliği yüzdesi (varsayılan=80)</string>
|
||||
<string name="settings_dialog_sharePercent">Paylaşılacak bant genişliği yüzdesi</string>
|
||||
<string name="settings_desc_upnp">Güvenlik duvarı kapıları kendiliğinden açılsın</string>
|
||||
<string name="settings_label_advanced">Gelişmiş</string>
|
||||
<string name="settings_label_transports">Aktarımlar</string>
|
||||
<string name="settings_label_maxConns">En fazla bağlantı</string>
|
||||
<string name="settings_label_i2cp">I2CP Arayüzü</string>
|
||||
<string name="settings_desc_i2cp">7654. kapı dinlensin</string>
|
||||
<string name="settings_label_exploratory_pool">Keşif havuzu</string>
|
||||
<string name="settings_desc_exploratory_pool">Tunel ayarları</string>
|
||||
<string name="settings_label_expl_inbound">Gelen tüneller</string>
|
||||
<string name="settings_label_expl_outbound">Giden tüneller</string>
|
||||
<string name="settings_label_expl_length">Uzunluk</string>
|
||||
<string name="settings_desc_expl_length">Kullanılacak sıçrama sayısı</string>
|
||||
<string name="settings_label_expl_lengthVariance">Sıçrama çeşitliliği</string>
|
||||
<string name="settings_desc_expl_lengthVariance">Rastgele eklenecek sıçrama sayısı</string>
|
||||
<string name="settings_label_expl_quantity">Nicelik</string>
|
||||
<string name="settings_desc_expl_quantity">Tünel sayısı</string>
|
||||
<string name="settings_label_expl_backupQuantity">Yedek niceliği</string>
|
||||
<string name="settings_desc_expl_backupQuantity">Tünel yedeği sayısı</string>
|
||||
</resources>
|
@@ -4,7 +4,64 @@
|
||||
<string name="app_name">I2P</string>
|
||||
<string name="welcome_new_install">Welcome to I2P! This app is ALPHA software and it does not provide strong anonymity. Please read the release notes and license information.</string>
|
||||
<string name="welcome_new_version">New version installed. Please read the release notes. Version:</string>
|
||||
<string name="settings_label_subscriptions">I2P Addressbook Settings</string>
|
||||
|
||||
<string name="label_home">I2P Home</string>
|
||||
<string name="label_statistics">Statistics</string>
|
||||
<string name="label_main_controls">Main Controls</string>
|
||||
<string name="label_tools">I2P Tools</string>
|
||||
<string name="label_addressbook">Addressbook</string>
|
||||
<string name="label_logs">Logs</string>
|
||||
<string name="label_error_logs">Error Logs</string>
|
||||
<string name="label_info_and_pages">Information and pages</string>
|
||||
<string name="label_welcome_page">Welcome Page</string>
|
||||
<string name="label_news">News</string>
|
||||
<string name="label_news_status">Latest I2P News</string>
|
||||
<string name="label_peers_status">Peers</string>
|
||||
<string name="label_release_notes">Release Notes</string>
|
||||
<string name="label_licenses">Licenses</string>
|
||||
<string name="label_nonanon_info">Non Anonymous Information</string>
|
||||
<string name="label_website_nonanon">Web Site (non-anon)</string>
|
||||
<string name="label_faq_nonanon">FAQ (non-anon)</string>
|
||||
|
||||
<string name="action_add">Add</string>
|
||||
<string name="action_router_start">Start Router</string>
|
||||
<string name="action_router_stop">Stop Router</string>
|
||||
<string name="action_reload">Reload</string>
|
||||
|
||||
<string name="menu_settings">Settings</string>
|
||||
<string name="settings_enable">Enable</string>
|
||||
<string name="settings_label_subscriptions">I2P Addressbook</string>
|
||||
<string name="settings_desc_subscriptions">Subscription URLs</string>
|
||||
<string name="settings_label_bandwidth">Bandwidth and network</string>
|
||||
<string name="settings_label_bw_inbound">Inbound speed</string>
|
||||
<string name="settings_desc_bw_inbound">Maximum inbound speed</string>
|
||||
<string name="settings_label_bw_outbound">Outbound speed</string>
|
||||
<string name="settings_desc_bw_outbound">Maximum outbound speed</string>
|
||||
<string name="settings_label_hiddenMode">Participation</string>
|
||||
<string name="settings_desc_hiddenMode">Turn off hidden mode</string>
|
||||
<string name="settings_label_maxPartTunnels">Max participating tunnels</string>
|
||||
<string name="settings_desc_maxPartTunnels">Maximum tunnels to participate in (default=20)</string>
|
||||
<string name="settings_dialog_maxPartTunnels">Maximum tunnels to participate in</string>
|
||||
<string name="settings_label_sharePercent">Share percentage</string>
|
||||
<string name="settings_desc_sharePercent">Percentage of bandwidth to share (default=80)</string>
|
||||
<string name="settings_dialog_sharePercent">Percentage of bandwidth to share</string>
|
||||
<string name="settings_desc_upnp">Open firewall ports automatically</string>
|
||||
<string name="settings_label_advanced">Advanced</string>
|
||||
<string name="settings_label_transports">Transports</string>
|
||||
<string name="settings_label_maxConns">Max connections</string>
|
||||
<string name="settings_label_i2cp">I2CP interface</string>
|
||||
<string name="settings_desc_i2cp">Listen on port 7654</string>
|
||||
<string name="settings_label_exploratory_pool">Exploratory pool</string>
|
||||
<string name="settings_desc_exploratory_pool">Tunnel parameters</string>
|
||||
<string name="settings_label_expl_inbound">Inbound tunnels</string>
|
||||
<string name="settings_label_expl_outbound">Outbound tunnels</string>
|
||||
<string name="settings_label_expl_length">Length</string>
|
||||
<string name="settings_desc_expl_length">How many hops to use</string>
|
||||
<string name="settings_label_expl_lengthVariance">Hop variance</string>
|
||||
<string name="settings_desc_expl_lengthVariance">How many hops to randomly add</string>
|
||||
<string name="settings_label_expl_quantity">Quantity</string>
|
||||
<string name="settings_desc_expl_quantity">How many tunnels</string>
|
||||
<string name="settings_label_expl_backupQuantity">Backup quantity</string>
|
||||
<string name="settings_desc_expl_backupQuantity">How many tunnel backups</string>
|
||||
|
||||
</resources>
|
@@ -1,9 +1,10 @@
|
||||
<PreferenceScreen
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:key="settings1">
|
||||
|
||||
<Preference
|
||||
android:title="@string/settings_label_subscriptions"
|
||||
android:summary="@string/settings_desc_subscriptions"
|
||||
android:key="addressbook_preferences">
|
||||
|
||||
<intent android:targetPackage="net.i2p.android.router" android:targetClass="net.i2p.android.router.activity.AddressbookSettingsActivity" />
|
||||
@@ -12,13 +13,11 @@
|
||||
|
||||
<!--
|
||||
Keys and the default values from current installation:
|
||||
i2cp.disableInterface=true
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2cp.disableInterface"
|
||||
android:defaultValue="false"
|
||||
android:title="Disable i2cp interface"
|
||||
/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_bandwidth"
|
||||
android:title="@string/settings_label_bandwidth">
|
||||
<!--
|
||||
i2np.bandwidth.inboundKBytesPerSecond=100
|
||||
-->
|
||||
@@ -26,9 +25,9 @@
|
||||
android:key="i2np.bandwidth.inboundKBytesPerSecond"
|
||||
android:defaultValue="100"
|
||||
android:max="1000"
|
||||
android:title="Inbound speed"
|
||||
android:summary="Maximum inbound speed"
|
||||
android:dialogMessage="Maximum inbound speed"
|
||||
android:title="@string/settings_label_bw_inbound"
|
||||
android:summary="@string/settings_desc_bw_inbound"
|
||||
android:dialogMessage="@string/settings_desc_bw_inbound"
|
||||
android:text=" KBytes/sec"
|
||||
/>
|
||||
<!--
|
||||
@@ -38,85 +37,27 @@
|
||||
android:key="i2np.bandwidth.outboundKBytesPerSecond"
|
||||
android:defaultValue="100"
|
||||
android:max="1000"
|
||||
android:title="Outbound speed"
|
||||
android:summary="Maximum outbound speed"
|
||||
android:dialogMessage="Maximum outbound speed"
|
||||
android:title="@string/settings_label_bw_outbound"
|
||||
android:summary="@string/settings_desc_bw_outbound"
|
||||
android:dialogMessage="@string/settings_desc_bw_outbound"
|
||||
android:text=" KBytes/sec"
|
||||
/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.ntcp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="Enable NTCP"
|
||||
/>
|
||||
|
||||
<!--
|
||||
i2np.udp.enable=false
|
||||
I might hide this one...
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.udp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="Enable UDP"
|
||||
android:summary="DO NOT DISABLE THIS"
|
||||
/>
|
||||
|
||||
<!--
|
||||
i2np.ntcp.maxConnections=24
|
||||
-->
|
||||
<com.hlidskialf.android.preference.SeekBarPreference
|
||||
android:key="i2np.ntcp.maxConnections"
|
||||
android:defaultValue="32"
|
||||
android:max="250"
|
||||
android:title="Max NTCP connections"
|
||||
android:summary="Maximum NTCP connections allowed (default=32)"
|
||||
android:dialogMessage="Maximum NTCP connections"
|
||||
android:text=" connections"
|
||||
android:dependency="i2np.ntcp.enable"
|
||||
android:shouldDisableView="true"
|
||||
/>
|
||||
<!--
|
||||
i2np.udp.maxConnections=12
|
||||
-->
|
||||
<com.hlidskialf.android.preference.SeekBarPreference
|
||||
android:key="i2np.udp.maxConnections"
|
||||
android:defaultValue="32"
|
||||
android:max="500"
|
||||
android:title="Max UDP connections"
|
||||
android:summary="Maximum UDP connections allowed"
|
||||
android:dialogMessage="Maximum UDP connections"
|
||||
android:text=" connections"
|
||||
android:dependency="i2np.udp.enable"
|
||||
android:shouldDisableView="true"
|
||||
/>
|
||||
<!--
|
||||
i2np.upnp.enable=false
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.upnp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="Enable UPNP"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="router.hiddenMode"
|
||||
android:defaultValue="false"
|
||||
android:title="Enable Participation"
|
||||
android:summary="Enabling this option turns off hidden mode"
|
||||
android:title="@string/settings_label_hiddenMode"
|
||||
android:summary="@string/settings_desc_hiddenMode"
|
||||
/>
|
||||
<!--
|
||||
|
||||
router.maxParticipatingTunnels=0
|
||||
-->
|
||||
<com.hlidskialf.android.preference.SeekBarPreference
|
||||
android:key="router.maxParticipatingTunnels"
|
||||
android:defaultValue="20"
|
||||
android:max="500"
|
||||
android:title="Max Participating Tunnels"
|
||||
android:summary="Maximum tunnels to participate in (default=20)"
|
||||
android:dialogMessage="Maximum tunnels to participate in"
|
||||
android:title="@string/settings_label_maxPartTunnels"
|
||||
android:summary="@string/settings_desc_maxPartTunnels"
|
||||
android:dialogMessage="@string/settings_dialog_maxPartTunnels"
|
||||
android:text=" Tunnels"
|
||||
android:dependency="router.hiddenMode"
|
||||
/>
|
||||
@@ -127,102 +68,211 @@
|
||||
android:key="router.sharePercentage"
|
||||
android:defaultValue="80"
|
||||
android:max="100"
|
||||
android:title="Share Percentage"
|
||||
android:summary="Percentage of bandwith to share (default=80)"
|
||||
android:dialogMessage="Percentage of bandwith to share"
|
||||
android:title="@string/settings_label_sharePercent"
|
||||
android:summary="@string/settings_desc_sharePercent"
|
||||
android:dialogMessage="@string/settings_dialog_sharePercent"
|
||||
android:text="%"
|
||||
android:dependency="router.hiddenMode"
|
||||
android:shouldDisableView="true"
|
||||
/>
|
||||
|
||||
<!--
|
||||
i2np.upnp.enable=false
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.upnp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="UPnP"
|
||||
android:summary="@string/settings_desc_upnp"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_advanced"
|
||||
android:title="@string/settings_label_advanced">
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="settings_transports"
|
||||
android:title="@string/settings_label_transports">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_ntcp"
|
||||
android:title="NTCP">
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.ntcp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="@string/settings_enable"
|
||||
/>
|
||||
<!--
|
||||
i2np.ntcp.maxConnections=24
|
||||
-->
|
||||
<com.hlidskialf.android.preference.SeekBarPreference
|
||||
android:key="i2np.ntcp.maxConnections"
|
||||
android:defaultValue="32"
|
||||
android:max="250"
|
||||
android:title="@string/settings_label_maxConns"
|
||||
android:summary="Maximum NTCP connections allowed (default=32)"
|
||||
android:dialogMessage="Maximum NTCP connections"
|
||||
android:text=" connections"
|
||||
android:dependency="i2np.ntcp.enable"
|
||||
android:shouldDisableView="true"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_udp"
|
||||
android:title="UDP">
|
||||
<!--
|
||||
i2np.udp.enable=false
|
||||
I might hide this one...
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2np.udp.enable"
|
||||
android:defaultValue="true"
|
||||
android:title="@string/settings_enable"
|
||||
android:summary="DO NOT DISABLE THIS"
|
||||
/>
|
||||
|
||||
<!--
|
||||
i2np.udp.maxConnections=12
|
||||
-->
|
||||
<com.hlidskialf.android.preference.SeekBarPreference
|
||||
android:key="i2np.udp.maxConnections"
|
||||
android:defaultValue="32"
|
||||
android:max="500"
|
||||
android:title="@string/settings_label_maxConns"
|
||||
android:summary="Maximum UDP connections allowed"
|
||||
android:dialogMessage="Maximum UDP connections"
|
||||
android:text=" connections"
|
||||
android:dependency="i2np.udp.enable"
|
||||
android:shouldDisableView="true"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
|
||||
<!--
|
||||
i2cp.disableInterface=true
|
||||
-->
|
||||
<CheckBoxPreference
|
||||
android:key="i2cp.disableInterface"
|
||||
android:defaultValue="false"
|
||||
android:title="@string/settings_label_i2cp"
|
||||
android:summary="@string/settings_desc_i2cp"
|
||||
/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="settings_exploratory_pool"
|
||||
android:title="@string/settings_label_exploratory_pool"
|
||||
android:summary="@string/settings_desc_exploratory_pool">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_expl_inbound"
|
||||
android:title="@string/settings_label_expl_inbound">
|
||||
<!--
|
||||
router.inboundPool.length=1
|
||||
router.outboundPool.length=1
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.inboundPool.length"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="inbound length"
|
||||
android:summary="How many hops for inbound tunnel"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.length"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="outbound length"
|
||||
android:summary="How many hops for outbound tunnel"
|
||||
android:title="@string/settings_label_expl_length"
|
||||
android:summary="@string/settings_desc_expl_length"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<!--
|
||||
router.inboundPool.lengthVariance=1
|
||||
router.outboundPool.lengthVariance=1
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.inboundPool.lengthVariance"
|
||||
android:entries="@array/setting2to2"
|
||||
android:entryValues="@array/setting2to2"
|
||||
android:title="inbound hop variance"
|
||||
android:summary="How many hops to randomly add to inbound tunnels"
|
||||
android:defaultValue="0"
|
||||
/>
|
||||
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.lengthVariance"
|
||||
android:entries="@array/setting2to2"
|
||||
android:entryValues="@array/setting2to2"
|
||||
android:title="outbound hop variance"
|
||||
android:summary="How many hops to randomly add to outbound tunnels"
|
||||
android:title="@string/settings_label_expl_lengthVariance"
|
||||
android:summary="@string/settings_desc_expl_lengthVariance"
|
||||
android:defaultValue="0"
|
||||
/>
|
||||
|
||||
|
||||
<!--
|
||||
router.inboundPool.quantity=2
|
||||
router.outboundPool.quantity=2
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.inboundPool.quantity"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="inbound quantity"
|
||||
android:summary="How many inbound tunnels"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.quantity"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="outbound quantity"
|
||||
android:summary="How many outbound tunnels"
|
||||
android:title="@string/settings_label_expl_quantity"
|
||||
android:summary="@string/settings_desc_expl_quantity"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<!--
|
||||
router.inboundPool.backupQuantity=0
|
||||
router.outboundPool.backupQuantity=0
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.inboundPool.backupQuantity"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="inbound backup quantity"
|
||||
android:summary="How many inbound tunnel backups"
|
||||
android:title="@string/settings_label_expl_backupQuantity"
|
||||
android:summary="@string/settings_desc_expl_backupQuantity"
|
||||
android:defaultValue="0"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="settings_expl_outbound"
|
||||
android:title="@string/settings_label_expl_outbound">
|
||||
<!--
|
||||
router.outboundPool.length=1
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.length"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="@string/settings_label_expl_length"
|
||||
android:summary="@string/settings_desc_expl_length"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<!--
|
||||
router.outboundPool.lengthVariance=1
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.lengthVariance"
|
||||
android:entries="@array/setting2to2"
|
||||
android:entryValues="@array/setting2to2"
|
||||
android:title="@string/settings_label_expl_lengthVariance"
|
||||
android:summary="@string/settings_desc_expl_lengthVariance"
|
||||
android:defaultValue="0"
|
||||
/>
|
||||
|
||||
<!--
|
||||
router.outboundPool.quantity=2
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.quantity"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="@string/settings_label_expl_quantity"
|
||||
android:summary="@string/settings_desc_expl_quantity"
|
||||
android:defaultValue="2"
|
||||
/>
|
||||
|
||||
<!--
|
||||
router.outboundPool.backupQuantity=0
|
||||
-->
|
||||
<ListPreference
|
||||
android:key="router.outboundPool.backupQuantity"
|
||||
android:entries="@array/setting0to3"
|
||||
android:entryValues="@array/setting0to3"
|
||||
android:title="outbound backup quantity"
|
||||
android:summary="How many outbound tunnel backups"
|
||||
android:title="@string/settings_label_expl_backupQuantity"
|
||||
android:summary="@string/settings_desc_expl_backupQuantity"
|
||||
android:defaultValue="0"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
<!--
|
||||
|
@@ -8,5 +8,5 @@
|
||||
# project structure.
|
||||
|
||||
# Project target.
|
||||
target=android-8
|
||||
target=android-18
|
||||
android.library=true
|
||||
|
@@ -1,9 +1,12 @@
|
||||
package net.i2p.android.router.activity;
|
||||
|
||||
import android.app.ListActivity;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
@@ -18,11 +21,12 @@ import net.i2p.I2PAppContext;
|
||||
import net.i2p.android.router.R;
|
||||
import net.i2p.client.naming.NamingService;
|
||||
|
||||
public class AddressbookActivity extends ListActivity {
|
||||
public class AddressbookActivity extends ActionBarActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_addressbook);
|
||||
|
||||
// Grab context if router has started, otherwise create new
|
||||
// FIXME dup contexts, locking, ...
|
||||
@@ -49,14 +53,14 @@ public class AddressbookActivity extends ListActivity {
|
||||
tv.setText("1 host in address book.");
|
||||
else
|
||||
tv.setText("No hosts in address book, or your router is not up.");
|
||||
ListView lv = getListView();
|
||||
ListView lv = (ListView) findViewById(R.id.addressbook_list);
|
||||
lv.addHeaderView(tv, "", false);
|
||||
lv.setTextFilterEnabled(sz > 1);
|
||||
|
||||
// set the list
|
||||
List<String> nameList = new ArrayList<String>(names);
|
||||
Collections.sort(nameList);
|
||||
setListAdapter(new ArrayAdapter<String>(this, R.layout.addressbook_list_item, nameList));
|
||||
lv.setAdapter(new ArrayAdapter<String>(this, R.layout.addressbook_list_item, nameList));
|
||||
|
||||
// set the callback
|
||||
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||
@@ -68,4 +72,26 @@ public class AddressbookActivity extends ListActivity {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
MenuInflater inflater = getMenuInflater();
|
||||
inflater.inflate(R.menu.activity_addressbook_actions, menu);
|
||||
return super.onCreateOptionsMenu(menu);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle presses on the action bar items
|
||||
switch (item.getItemId()) {
|
||||
//case R.id.action_add_to_addressbook:
|
||||
// return true;
|
||||
case R.id.action_addressbook_settings:
|
||||
Intent intent = new Intent(this, AddressbookSettingsActivity.class);
|
||||
startActivity(intent);
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,12 @@
|
||||
package net.i2p.android.router.activity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.content.ServiceConnection;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
@@ -23,7 +23,7 @@ import net.i2p.router.peermanager.ProfileOrganizer;
|
||||
import net.i2p.router.transport.FIFOBandwidthLimiter;
|
||||
import net.i2p.stat.StatManager;
|
||||
|
||||
public abstract class I2PActivityBase extends Activity {
|
||||
public abstract class I2PActivityBase extends ActionBarActivity {
|
||||
protected String _myDir;
|
||||
protected boolean _isBound;
|
||||
protected boolean _triedBind;
|
||||
|
Reference in New Issue
Block a user