Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
Cómo usar HdmiControlService

Estoy tratando de desarrollar una aplicación que pueda encender/apagar el televisor a través de HDMI-CEC. Descubrí que el proyecto fuente de Android tenía una llamada de servicio HdmiControlService aquí . Pero no tengo ningún ideal sobre cómo usar esto.

Sé que HdmiControlService está disponible para Android 5.0, así que cambio la versión SDK a 21, pero todavía me dice que can't not resolve symbol HdmiControlService .

¿Alguien tiene algún ideal sobre cómo usar esta API o cualquier código para mí?

Muchas gracias.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

De la clase Context.java :

/** * 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";
/** * 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";

Puede ver que está anotado tanto con @SystemApi como con @hide , lo que significa que no está disponible para la API pública. Está "expuesto para uso de aplicaciones del sistema integradas" únicamente.

Por lo tanto, no hay forma de usar ese servicio (todavía).

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!