Android examples for android.provider:MediaStore
register Minimal Media Route Provider
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); } } }