1. Are you ready for the Galaxy S20? Here is everything we know so far!

Sending button pressed action to another running applications

Discussion in 'Android Development' started by TienDat, Jan 2, 2021.

  1. TienDat

    TienDat Lurker
    Thread Starter

    Dear,

    We are working on an application, which can run in parallel with other applications (most likely camera apps). The main goal of our application is: to listen to button press action on a bluetooth paired device, then to send a signal to the RUNNING (on screen) camera app to take the picture. This mean our app serves ONLY as a remote invoker for the camera app to take the picture, whenever user clicks the remote button.

    We all know that most of the camera apps listen to action on volume keys (up and down) to take picture. We tried to mimic the user action on volume keys by using the Instrumentation API. However, to use the sendKeyDownUpSync of this API, it requires the INJECT_EVENTS permission, which a 3rd-party application is not normally supposed to have.

    Do you have any experience about this topic, could you please enlighten us?

    Best regards
    Dat
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Sending button pressed
  1. Laura19752001
    Replies:
    6
    Views:
    288
  2. Sammy Power
    Replies:
    7
    Views:
    431
  3. Ctwistedpair
    Replies:
    3
    Views:
    298
  4. Twink
    Replies:
    5
    Views:
    540
  5. App Update
    Replies:
    1
    Views:
    355
  6. TienDat
    Replies:
    3
    Views:
    523
  7. Rene G Volpi
    Replies:
    2
    Views:
    451
  8. PGB1213
    Replies:
    4
    Views:
    622
  9. Carroll
    Replies:
    3
    Views:
    849
  10. LT123
    Replies:
    1
    Views:
    394

Share This Page

Loading...