register Minimal Media Route Provider - Android android.provider

Android examples for android.provider:MediaStore

Description

register Minimal Media Route Provider

Demo Code


import android.content.Intent;
import android.support.v7.media.MediaRouteProvider;
import android.support.v7.media.MediaRouter;
import android.support.v7.media.MediaRouter.RouteInfo;
import android.text.TextUtils;

public class Main{
    private static MediaRouteProvider a;
    public static boolean registerMinimalMediaRouteProvider(
            CastContext paramCastContext,
            MediaRouteAdapter paramMediaRouteAdapter) {
        p.a();/*from w  ww  .j  a  va 2s.  com*/
        if (a != null)
            ;
        for (boolean bool = false;; bool = true) {
            return bool;
            MediaRouter localMediaRouter = MediaRouter
                    .getInstance(paramCastContext.getApplicationContext());
            a = new j(paramCastContext, paramMediaRouteAdapter);
            MediaRouteProvider localMediaRouteProvider = a;
            localMediaRouter.addProvider(localMediaRouteProvider);
        }
    }
}

Related Tutorials