Status Update
Comments
ra...@gmail.com <ra...@gmail.com> #2
there are some image for help
ib...@google.com <ib...@google.com> #3
hello?
ra...@gmail.com <ra...@gmail.com> #4
mediaRouter = MediaRouter.getInstance(this); mSelector = new MediaRouteSelector.Builder() .addControlCategory(MediaControlIntent.CATEGORY_REMOTE_PLAYBACK) .build(); mediaRouter.addCallback(mSelector,mediaRouterCallback, CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
// Inflate the menu and configure the media router action provider.
getMenuInflater().inflate(R.menu.menu, menu);
// Attach the MediaRouteSelector to the menu item
MenuItem mediaRouteMenuItem = menu.findItem(R.id.media_route_menu_item);
MediaRouteActionProvider mediaRouteActionProvider =
(MediaRouteActionProvider) MenuItemCompat.getActionProvider(mediaRouteMenuItem);
// Attach the MediaRouteSelector that you built in onCreate()
mediaRouteActionProvider.setRouteSelector(mSelector);
// Return true to show the menu.
return true;
}
okay so this is my code for searching wireless device on same network it found route default phone only i don't know why i tried every possible ways and stuck into this topic from week please help. Thanks in advance...
aq...@google.com <aq...@google.com> #5
Please reproduce the issue on a device running Android U or later, and while the dialog is open please capture a bugreport using adb bugreport
and share the output here.
ra...@gmail.com <ra...@gmail.com> #6
okay i will but i just want to let you know that i am unable to find any wireless device actually fire tv and roku tv etc wireless displays are next to me but this code doesn't work for detecting device.
Description
I am currently working with Media router and it doesn't found any wireless tv / android tv and i only copy paste the code from here only and as per my knowledge there is nothing wrong i am sharing my main activity code please review it and let me know if i am making any mistake