diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-11-21 17:53:55 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-11-21 17:53:55 +0100 |
commit | 4e40f6128960ac9e0fc617d86aeee9331a95381d (patch) | |
tree | 594c59c5e9c50ebd807e56877b7aeec284a1ea5f /remoteExample | |
parent | f086819427fb2bb5a7887242a1a821c5bd975293 (diff) |
Do not use an implicit Intent in the remote example
--HG--
extra : rebase_source : a7e9847f15adfa702c2712b5ee8d9878674ba4b6
Diffstat (limited to 'remoteExample')
-rw-r--r-- | remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java | 7 |
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() { |