Gun Grip Development for TC55

H Horst Anderlohr 3 years 5 months ago
1 1 0

The TC55 has an magnetic sensor to detect car cradle insertion. We want to use this sensor, to get a Trigger event from a Gun Grip. Therefore we need an API, or function we can use to catch this event. Any Idea ?j

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Since this solution is overloading the car cradle solution, you can easily monitor the "Car Dock" events provided by native Android. 

You can look here for specific Intents to monitor: http://developer.android.com/training/monitoring-device-state/docking-m…

You will get ACTION_DOCK_EVENT each time the hall effect is triggered and released.  The extras in the Intent tell you if the hall effect has been activated (EXTRA_DOCK_STATE_CAR ) or released (EXTRA_DOCK_STATE_UNDOCKED)

CONTACT
Can’t find what you’re looking for?