开发者

Calling native Android kernel function from user code

As my Motorola i1 refuses to light its LED in the usual programmatic way (using NotificationManager with LED on specified), I've dived into Android Cupcake's source code and found out that the native applications such as Calendar & Messaging do this using NotificationManagerService, which uses

IHardwareService.setLedState()

which, in turn, calls the

setLightFlashing开发者_如何学编程_UNCHECKED() 

function of the kernel (or is it a component other than the kernel?). How do I either instantiate the HardwareService implementing IHardwareService, or call the setLightFlashing_UNCHECKED myself?


You can't, applications don't have permission to directly access such hardware.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜