Example usage for android.app Fragment getLoaderManager

List of usage examples for android.app Fragment getLoaderManager

Introduction

In this page you can find the example usage for android.app Fragment getLoaderManager.

Prototype

@Deprecated
public LoaderManager getLoaderManager() 

Source Link

Document

Return the LoaderManager for this fragment, creating it if needed.

Usage

From source file:io.pivotal.arca.fragments.ArcaDispatcherFactory.java

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static ArcaDispatcher generateDispatcher(android.app.Fragment fragment) {
    final ContentResolver resolver = fragment.getActivity().getContentResolver();
    final ArcaExecutor executor = new ArcaExecutor.DefaultArcaExecutor(resolver, fragment.getActivity());
    return new ArcaModernDispatcher(executor, fragment.getActivity(), fragment.getLoaderManager());
}

From source file:org.jboss.aerogear.android.authentication.impl.loader.AuthenticationModuleAdapter.java

public AuthenticationModuleAdapter(Fragment fragment, Context applicationContext, AuthenticationModule module,
        String name) {//from  ww w.  j av  a2s  .  c o  m
    this.module = module;
    this.manager = fragment.getLoaderManager();
    this.applicationContext = applicationContext;
    this.activity = null;
    this.fragment = fragment;
    this.name = name;
    this.handler = new Handler(Looper.getMainLooper());
}

From source file:org.jboss.aerogear.android.pipe.loader.LoaderAdapter.java

public LoaderAdapter(Fragment fragment, Context applicationContext, Pipe<T> pipe, String name) {
    this.pipe = pipe;
    this.manager = fragment.getLoaderManager();
    this.requestBuilder = pipe.getRequestBuilder();
    this.responseParser = pipe.getResponseParser();
    this.applicationContext = applicationContext;
    this.name = name;
    this.handler = new Handler(Looper.getMainLooper());
    this.fragment = fragment;
}