Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
How to use HdmiControlService

I'm trying develop an app that can turn on/off the TV through HDMI-CEC. I found that android source project had a service call HdmiControlService here. But I don't have any ideal about how to using this.

I know HdmiControlService is available for android 5.0, so I change the sdk version to 21, But it's still telling me that can't not resolve symbol HdmiControlService.

Does any one have any ideal about how to use this api or any code for me.

Thanks a lot.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

From Context.java class:


    /**
     * Use with {@link #getSystemService} to retrieve a
     * {@link android.hardware.hdmi.HdmiControlManager} for controlling and managing
     * HDMI-CEC protocol.
     *
     * @see #getSystemService
     * @see android.hardware.hdmi.HdmiControlManager
     * @hide
     */
    @SystemApi
    public static final String HDMI_CONTROL_SERVICE = "hdmi_control";

You can see it is annotated with both @SystemApi and @hide, which means that it is not available for public API. It is "exposed for use by bundled system applications" only.

Thus, there is no way to use that service (yet).

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda