开发者

Cannot find certain implementing classes in Android

In short, I am looking for the implementation of the IAlarmManager.

I am interested in the scheduling done by the AlarmManager.setInexactRepeating method and so I started looking for the implementation but I haven't been able to find anything. Internally to AlarmManager, I can see that the actual work is being done by an android.app.IAlarmManager interface. After googl开发者_JAVA技巧ing around for a bit there seems to reference to an implementing class called android.app.IAlarmManager.Stub but that is as far I get. I am working with Android 1.6.


IAlarmManager is AIDL interface - used for RPC calls to remote Service.

The IAlarmManager.Stub is nested static class, used for obtaining and referencing the remote service - the Service you'll be exposing through the interface will extend the *.Stub class. For more info on using AIDL look here: http://developer.android.com/guide/developing/tools/aidl.html

The concrete service that you are looking for is called AlarmManagerService. You can find its source code and the implementation of setInexactRepeating() here: https://android.googlesource.com/platform/frameworks/base/+/froyo-release/services/java/com/android/server/AlarmManagerService.java
Hope that helps.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜