System.loadLibrary voodoo magic

Former-commit-id: 97ff59f95b
This commit is contained in:
2016-06-08 15:29:48 +02:00
parent ce6ebde8b7
commit 4b43096ba8
3 changed files with 7 additions and 6 deletions
@@ -35,10 +35,6 @@ public class MainActivity extends ReactActivity {
final Handler handler = new Handler();
protected void startStatus() {
// Required for android-16 (???)
System.loadLibrary("gethraw");
System.loadLibrary("geth");
// Required because of crazy APN settings redirecting localhost (found in GB)
Properties properties = System.getProperties();
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
@@ -70,6 +66,11 @@ public class MainActivity extends ReactActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Required for android-16 (???)
// Crash if put in startStatus() ?
System.loadLibrary("gethraw");
System.loadLibrary("geth");
if(!RootUtil.isDeviceRooted()) {
startStatus();
} else {