0

I wrote a sender in android and wrote a custom receiver, I have a problem that how can I know to show different language content from receiver when sender connected

Eagle
  • 451
  • 2
  • 5
  • 14

1 Answers1

0

On the sender side, when you want to launch your application on a cast device, you can provide additional data in the api that launches the app by providing a LaunchOptions parameter (see this, for example). One of the parameters there is language and once you set that, when the cast device requests your receiver, it includes the appropriate "Accept-Language" header and your server can provide the appropriate page to the cast device.

Ali Naddaf
  • 16,951
  • 2
  • 21
  • 28