summaryrefslogtreecommitdiff
path: root/remoteExample/src
diff options
context:
space:
mode:
Diffstat (limited to 'remoteExample/src')
-rw-r--r--remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java b/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java
index 0bb634aa..4f6481b0 100644
--- a/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java
+++ b/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java
@@ -159,8 +159,11 @@ public class MainFragment extends Fragment implements View.OnClickListener, Hand
private String mStartUUID=null;
private void bindService() {
- getActivity().bindService(new Intent(IOpenVPNAPIService.class.getName()),
- mConnection, Context.BIND_AUTO_CREATE);
+
+ Intent icsopenvpnService = new Intent(IOpenVPNAPIService.class.getName());
+ icsopenvpnService.setPackage("de.blinkt.openvpn");
+
+ getActivity().bindService(icsopenvpnService, mConnection, Context.BIND_AUTO_CREATE);
}
protected void listVPNs() {