add Whisper flag and comments for Android quirks

Former-commit-id: ebd42db745
This commit is contained in:
Jarrad Hope 2016-02-23 18:49:35 +01:00
parent da0a405100
commit c003165d88
1 changed files with 7 additions and 1 deletions

View File

@ -17,14 +17,20 @@ public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Required for android-16 (???)
System.loadLibrary("gethraw");
System.loadLibrary("geth");
// Required because of crazy APN settings redirecting localhost
Properties properties = System.getProperties();
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1");
// Launch!
new Thread(new Runnable() {
public void run() {
Geth.run("--ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath());
Geth.run("--shh --ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath());
}
}).start();
}