Service Connector alternatives and similar packages
Based on the "Android Services" category.
Alternatively, view Service Connector alternatives based on common mentions on social networks and blogs.
-
Stfalcon-PriceRangeBar
Android library for adding price range with chart like in airbnb with flexible customization. Made by Stfalcon -
Remoter
Remoter - An alternative to Android AIDL for Android Remote IPC services using plain java interfaces -
swipeable-button
Android Swipeable button like in iOS unlock screen. Made by Stfalcon -
Bootstrap Hover Dropdown Plugin
An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience. -
Pluto
Pluto is a on-device debugger for Android applications, which helps in inspection of HTTP requests/responses, capture Crashes and ANRs and manipulating application data on-the-go. -
Searchable Paging Library
This library can help you to create searchable list with pagination
Appwrite - The open-source backend cloud platform
Do you think we are missing an alternative of Service Connector or a related project?
README
ServiceConnector
Field and method binding for connecting with Android remote AIDL (or Remoter) services.
Replace the boiler plate service connection codes like -
public class ActivityWithoutServiceConnector extends Activity {
//remote service interface
private IEchoService mEchoService;
/**
* Service connection that gets call back when service is connected
*/
private ServiceConnection serviceConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName componentName, IBinder service) {
//get the service
mEchoService = IEchoService.Stub.asInterface(service);
}
@Override
public void onServiceDisconnected(ComponentName componentName) {
mEchoService = null;
}
};
/**
* Connect with the remote service
*/
private void conectWithService() {
Intent serviceIntent = new Intent("util.serviceconnector.ECHO_SERVICE");
serviceIntent.setComponent(new ComponentName("util.serviceconnector.service", "util.serviceconnector.service.EchoService"));
startService(serviceIntent);
bindService(serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
...
conectWithService();
}
}
Replace that with
public class ActivityWithServiceConnector extends Activity {
@ServiceInfo(serviceIntent = "util.serviceconnector.ECHO_SERVICE")
private IEchoService mEchoService;
@ServiceConnectionCallback
public void onServiceConnectionChanged(String serviceIntent, boolean connected) throws RemoteException {
}
@Override
protected void onCreate(Bundle savedInstanceState) {
...
ServiceConnector.bind(this, this);
}
}
Getting ServiceConnector
dependencies {
compile 'com.josesamuel:serviceconnector:1.0.6'
}
Java Doc
ServiceConnector Java Doc
License
Copyright 2018 Joseph Samuel
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the Service Connector README section above
are relevant to that project's source code only.