Integrate a device hardware button with Zello

  • Updated

This article is written for: Zello Work Zello Friends & Family.

To be listed under Zello recommended phones:
  1. The phone must have an additional key that can be used for PTT (not volume or wake up keys).
  2. The button should launch Zello when it is in the background. 
  3. The button should trigger PTT when pressed.
  4. The button should unlock the phone when pressed. This functionality needs to be added to the button in addition to the firmware changes below which will only launch Zello and use it as a PTT button.
  5. Loudspeakers are necessary for a great Zello PTT experience.

Firmware changes

The hardware button must send the commands below to work as a PTT button and launch Zello. If a hardware button is assigned these commands, the button will trigger PTT if Zello is in the foreground and if the Zello is in the background it will launch Zello before triggering PTT.

  When the button is pressed:
     context.sendBroadcast(new Intent("com.zello.ptt.down"));
   
  When the button is released:
     context.sendBroadcast(new Intent("com.zello.ptt.up"));
   
Once the firmware changes have been made, test the button with Zello by mapping it in the Push-to-talk button settings.
  
Read Integrate Zello with your app to add a PTT button from your application.