Tabnine Logo
SpiceManager.start
Code IndexAdd Tabnine to your IDE (free)

How to use
start
method
in
com.octo.android.robospice.SpiceManager

Best Java code snippets using com.octo.android.robospice.SpiceManager.start (Showing top 5 results out of 315)

origin: com.octo.android.robospice/robospice

@Override
protected void onStart() {
  spiceManager.start(this);
  super.onStart();
}
origin: com.octo.android.robospice/robospice-sample

@Override
protected void onStart() {
  contentManagerJson.start( this );
  contentManagerOrmlite.start( this );
  super.onStart();
}
origin: n76/wifi_backend

@Override
public void onStart() {
  super.onStart();
  spiceManager.start(getActivity());
}
origin: com.octo.android.robospice/robospice

@SuppressWarnings({ "unchecked", "rawtypes", "deprecation" })
@Override
public final void onStart(final Intent intent, final int startId) {
  super.onStart(intent, startId);
  notificationId = intent.getIntExtra(BUNDLE_KEY_NOTIFICATION_ID, DEFAULT_ROBOSPICE_NOTIFICATION_ID);
  requestClass = (Class<?>) intent.getSerializableExtra(BUNDLE_KEY_REQUEST_CLASS);
  requestCacheKey = intent.getStringExtra(BUNDLE_KEY_REQUEST_CACHE_KEY);
  spiceServiceClass = (Class<? extends SpiceService>) intent.getSerializableExtra(BUNDLE_KEY_SERVICE_CLASS);
  if (spiceServiceClass == null) {
    throw new RuntimeException("Please specify a service class to monitor. Use #createIntent as helper.");
  }
  foreground = intent.getBooleanExtra(BUNDLE_KEY_FOREGROUND, true);
  spiceManager = new SpiceManager(spiceServiceClass);
  notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  spiceManager.start(this);
  spiceManager.addListenerIfPending(requestClass, requestCacheKey, new NotificationRequestListener());
  if (foreground) {
    startForeground(notificationId, onCreateForegroundNotification());
  }
}
origin: com.octo.android.robospice/robospice

@SuppressWarnings({ "unchecked", "deprecation" })
@Override
public final void onStart(final Intent intent, final int startId) {
  super.onStart(intent, startId);
  if (intent == null) {
    return;
  }
  notificationId = intent.getIntExtra(BUNDLE_KEY_NOTIFICATION_ID, DEFAULT_ROBOSPICE_NOTIFICATION_ID);
  spiceServiceClass = (Class<? extends SpiceService>) intent.getSerializableExtra(BUNDLE_KEY_SERVICE_CLASS);
  if (spiceServiceClass == null) {
    throw new RuntimeException("Please specify a service class to monitor. Use #createIntent as helper.");
  }
  foreground = intent.getBooleanExtra(BUNDLE_KEY_FOREGROUND, true);
  spiceManager = new SpiceManager(spiceServiceClass);
  notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  spiceManager.start(this);
  spiceManager.addSpiceServiceListener(new NotificationSpiceServiceListener());
  if (foreground) {
    startForeground(notificationId, onCreateForegroundNotification());
  }
  Ln.d(getClass().getSimpleName() + " started.");
}
com.octo.android.robospiceSpiceManagerstart

Javadoc

Start the SpiceManager. It will bind asynchronously to the SpiceService.

Popular methods of SpiceManager

  • execute
  • shouldStop
    Stops the SpiceManager. It will unbind from SpiceService. All request listeners that had been regist
  • <init>
    Creates a SpiceManager. Typically this occurs in the construction of an Activity or Fragment. This m
  • addListenerIfPending
  • addRequestListenerToListOfRequestListeners
  • addSpiceServiceListener
  • bindToService
  • checkServiceIsProperlyDeclaredInAndroidManifest
  • dontNotifyAnyRequestListenersInternal
    Remove all listeners of requests. All requests that have not been yet passed to the service will see
  • dontNotifyRequestListenersForRequestInternal
    Internal method to remove requests. If request has not been passed to the SpiceService yet, all list
  • executeCommand
  • getContextReference
  • executeCommand,
  • getContextReference,
  • getThreadCount,
  • isStarted,
  • match,
  • putInCache,
  • removeListenersOfAllPendingCachedRequests,
  • removeListenersOfCachedRequestToLaunch,
  • removeListenersOfPendingCachedRequest

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Collectors (java.util.stream)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now