diff --git a/src/net/i2p/android/router/fragment/I2PFragmentBase.java b/src/net/i2p/android/router/fragment/I2PFragmentBase.java
index 4d111bfd5083e69cafa8cb16ad3bbbe77da9eb36..4848fed1eeae187194fa7ceb3b1958f30a14af47 100644
--- a/src/net/i2p/android/router/fragment/I2PFragmentBase.java
+++ b/src/net/i2p/android/router/fragment/I2PFragmentBase.java
@@ -1,6 +1,7 @@
 package net.i2p.android.router.fragment;
 
 import android.content.ComponentName;
+import android.content.Context;
 import android.content.Intent;
 import android.content.ServiceConnection;
 import android.content.SharedPreferences;
@@ -220,7 +221,7 @@ public abstract class I2PFragmentBase extends Fragment {
         intent.setClassName(getActivity(), "net.i2p.android.router.service.RouterService");
         Util.i(this + " calling bindService");
         _connection = new RouterConnection();
-        _triedBind = getActivity().bindService(intent, _connection, autoCreate ? getActivity().BIND_AUTO_CREATE : 0);
+        _triedBind = getActivity().bindService(intent, _connection, autoCreate ? Context.BIND_AUTO_CREATE : 0);
         Util.i(this + " bindService: auto create? " + autoCreate + " success? " + _triedBind);
         return _triedBind;
     }