Search in sources :

Example 1 with MediaBrowser

use of android.media.browse.MediaBrowser in project platform_frameworks_base by android.

the class BrowserListFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    Log.d(TAG, "onActivityCreated -- " + hashCode());
    mAdapter = new Adapter();
    setListAdapter(mAdapter);
    // Get our arguments
    final Bundle args = getArguments();
    mComponent = args.getParcelable(ARG_COMPONENT);
    mNodeId = args.getString(ARG_ID);
    // A hint about who we are, so the service can customize the results if it wants to.
    final Bundle rootHints = new Bundle();
    rootHints.putBoolean(HINT_DISPLAY, true);
    mBrowser = new MediaBrowser(getActivity(), mComponent, mConnectionCallbacks, rootHints);
}
Also used : MediaBrowser(android.media.browse.MediaBrowser) Bundle(android.os.Bundle) BaseAdapter(android.widget.BaseAdapter)

Example 2 with MediaBrowser

use of android.media.browse.MediaBrowser in project android_frameworks_base by crdroidandroid.

the class BrowserListFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    Log.d(TAG, "onActivityCreated -- " + hashCode());
    mAdapter = new Adapter();
    setListAdapter(mAdapter);
    // Get our arguments
    final Bundle args = getArguments();
    mComponent = args.getParcelable(ARG_COMPONENT);
    mNodeId = args.getString(ARG_ID);
    // A hint about who we are, so the service can customize the results if it wants to.
    final Bundle rootHints = new Bundle();
    rootHints.putBoolean(HINT_DISPLAY, true);
    mBrowser = new MediaBrowser(getActivity(), mComponent, mConnectionCallbacks, rootHints);
}
Also used : MediaBrowser(android.media.browse.MediaBrowser) Bundle(android.os.Bundle) BaseAdapter(android.widget.BaseAdapter)

Example 3 with MediaBrowser

use of android.media.browse.MediaBrowser in project android_frameworks_base by DirtyUnicorns.

the class BrowserListFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    Log.d(TAG, "onActivityCreated -- " + hashCode());
    mAdapter = new Adapter();
    setListAdapter(mAdapter);
    // Get our arguments
    final Bundle args = getArguments();
    mComponent = args.getParcelable(ARG_COMPONENT);
    mNodeId = args.getString(ARG_ID);
    // A hint about who we are, so the service can customize the results if it wants to.
    final Bundle rootHints = new Bundle();
    rootHints.putBoolean(HINT_DISPLAY, true);
    mBrowser = new MediaBrowser(getActivity(), mComponent, mConnectionCallbacks, rootHints);
}
Also used : MediaBrowser(android.media.browse.MediaBrowser) Bundle(android.os.Bundle) BaseAdapter(android.widget.BaseAdapter)

Example 4 with MediaBrowser

use of android.media.browse.MediaBrowser in project android_frameworks_base by ResurrectionRemix.

the class BrowserListFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    Log.d(TAG, "onActivityCreated -- " + hashCode());
    mAdapter = new Adapter();
    setListAdapter(mAdapter);
    // Get our arguments
    final Bundle args = getArguments();
    mComponent = args.getParcelable(ARG_COMPONENT);
    mNodeId = args.getString(ARG_ID);
    // A hint about who we are, so the service can customize the results if it wants to.
    final Bundle rootHints = new Bundle();
    rootHints.putBoolean(HINT_DISPLAY, true);
    mBrowser = new MediaBrowser(getActivity(), mComponent, mConnectionCallbacks, rootHints);
}
Also used : MediaBrowser(android.media.browse.MediaBrowser) Bundle(android.os.Bundle) BaseAdapter(android.widget.BaseAdapter)

Aggregations

MediaBrowser (android.media.browse.MediaBrowser)4 Bundle (android.os.Bundle)4 BaseAdapter (android.widget.BaseAdapter)4