Java Code Examples for android.content.ContextWrapper#unbindService()
The following examples show how to use
android.content.ContextWrapper#unbindService() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MusicPlayerRemote.java From Music-Player with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }
Example 2
Source File: MusicPlayerRemote.java From MusicPlayer with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }
Example 3
Source File: MusicPlayerRemote.java From Orin with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }
Example 4
Source File: MusicPlayerRemote.java From RetroMusicPlayer with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }
Example 5
Source File: MusicPlayerRemote.java From VinylMusicPlayer with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }
Example 6
Source File: MusicPlayer.java From Muzesto with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { mService = null; } }
Example 7
Source File: MusicPlayerRemote.java From Phonograph with GNU General Public License v3.0 | 5 votes |
public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; } final ContextWrapper mContextWrapper = token.mWrappedContext; final ServiceBinder mBinder = mConnectionMap.remove(mContextWrapper); if (mBinder == null) { return; } mContextWrapper.unbindService(mBinder); if (mConnectionMap.isEmpty()) { musicService = null; } }