public static void setup(final Context context, final Goro goro) {
    if (goro == null) {
      throw new IllegalArgumentException("Goro instance cannot be null");
    }
    if (!Util.checkMainThread()) {
      throw new IllegalStateException("GoroService.setup must be called on the main thread");
    }
    GoroService.goro = goro;
    context.getPackageManager().setComponentEnabledSetting(
        new ComponentName(context, GoroService.class),
        COMPONENT_ENABLED_STATE_ENABLED,
        DONT_KILL_APP
    );
  }
public static void setup ( final Context context , final Goro goro ) { if ( goro == null ) { throw new IllegalArgumentException ( "Goro instance cannot be null" ) ; } if ( ! Util . checkMainThread ( ) ) { throw new IllegalStateException ( "GoroService.setup must be called on the main thread" ) ; } GoroService . goro = goro ; context . getPackageManager ( ) . setComponentEnabledSetting ( new ComponentName ( context , GoroService . class ) , COMPONENT_ENABLED_STATE_ENABLED , DONT_KILL_APP ) ; }
*
Initialize GoroService which will allow you to use {@code Goro.bindXXX} methods.
@param context context instance used to enable GoroService component
@param goro instance of Goro that should be used by the service