Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use IHardwareService in your code?

Is there a way to use somehow IHardwareService. It is not visible, but documentation concerning it can be found. So looks like there should be some way to use it.

Could you please advice how to do this?

Thanks.

like image 637
Lyubomyr Dutko Avatar asked Nov 26 '25 17:11

Lyubomyr Dutko


1 Answers

From an SDK application, you don't use IHardwareService. It is not available in the SDK.

If you are creating your own device or are otherwise modifying Android firmware, it should be possible to access it -- just use Google Code Search to find places which reference it and see how they use it.

like image 138
CommonsWare Avatar answered Nov 29 '25 11:11

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!