|
|
|
@ -2,6 +2,13 @@ package org.purplei2p.i2pd;
@@ -2,6 +2,13 @@ package org.purplei2p.i2pd;
|
|
|
|
|
|
|
|
|
|
import java.io.PrintWriter; |
|
|
|
|
import java.io.StringWriter; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.FileInputStream; |
|
|
|
|
import java.io.FileNotFoundException; |
|
|
|
|
import java.io.FileOutputStream; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
|
|
import java.util.Timer; |
|
|
|
|
import java.util.TimerTask; |
|
|
|
|
|
|
|
|
@ -26,7 +33,7 @@ public class I2PD extends Activity {
@@ -26,7 +33,7 @@ public class I2PD extends Activity {
|
|
|
|
|
private TextView textView; |
|
|
|
|
|
|
|
|
|
private final DaemonSingleton daemon = DaemonSingleton.getInstance(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private DaemonSingleton.StateUpdateListener daemonStateUpdatedListener = |
|
|
|
|
new DaemonSingleton.StateUpdateListener() { |
|
|
|
|
|
|
|
|
@ -58,6 +65,9 @@ public class I2PD extends Activity {
@@ -58,6 +65,9 @@ public class I2PD extends Activity {
|
|
|
|
|
public void onCreate(Bundle savedInstanceState) { |
|
|
|
|
super.onCreate(savedInstanceState); |
|
|
|
|
|
|
|
|
|
//install certs every time
|
|
|
|
|
Decompress.unzipFromAssets(this, "certificates.zip", "/data/data/org.purplei2p.i2pd/app_data/"); |
|
|
|
|
|
|
|
|
|
textView = new TextView(this); |
|
|
|
|
setContentView(textView); |
|
|
|
|
DaemonSingleton.getInstance().addStateChangeListener(daemonStateUpdatedListener); |
|
|
|
|