Where can I find APPLICATION_ID

I am learning cast api for android and I am stuck in this part:

mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID")) .build(); 

Where can I find this APPLICATION_ID and what is it?

+3
source share
2 answers

Unfortunately, when completing the Google Sending Android Android Tutorial, you need to follow a few steps not described on the site to develop Chromecast applications:

  • You must register (yes, pay $ 5) for the Google Cast SDK
  • After this process, I suggest you add the device serial number to the Google Cast SDK Developer Console , as it lasts 15 minutes. You can find more about this process on the Google Cast registration page.
  • While waiting for the device to register, add your application to the Google Cast SDK Developer Console by clicking Add New Application . In the next step, select Styled Media Receiver , and you can put anything in the Application Name
  • Saving the application, you will receive YOUR_APPLICATION_ID
  • After 15 minutes (or when adding the device is ready) do not forget to do step 6. and 7. from the Google Cast registration page
    • In the Chromecast settings application, select Chromecast and select the "Send Chromecast serial number when checking for updates" checkbox.
    • Reboot the Cast device: disconnect the power cable or USB cable from the device, then reconnect it (or you can just press the reset button in the Chromecast settings application)
+6
source

I think you need to register your application in the dashboard here .

After registration, you will be assigned the application identifier for your application, which can then be used for development.

Excerpt from the documentation :

Before you can develop and test applications on your own Google Cast device, you need to get the application ID for the API calls and register your Google Cast Device (e.g. Chromecast) as a development device. For more details, read the Registration Guide.

+2
source

Source: https://habr.com/ru/post/1236440/


All Articles