From 4e40f6128960ac9e0fc617d86aeee9331a95381d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 21 Nov 2014 17:53:55 +0100 Subject: Do not use an implicit Intent in the remote example --HG-- extra : rebase_source : a7e9847f15adfa702c2712b5ee8d9878674ba4b6 --- .../src/main/java/de/blinkt/openvpn/remote/MainFragment.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'remoteExample/src/main') 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() { -- cgit v1.2.3