【问题标题】:Android source code debugging in Eclipse - Location serviceEclipse中Android源码调试——定位服务
【发布时间】:2012-04-14 15:29:41
【问题描述】:

我正在尝试映射 android 中的函数调用流 - 当应用调用 API 时控制如何流动。我的第一个案例研究是定位服务。

在调试时,控件永远不会到达 LocalationManagerService.java

  • 我的 LocationDemo 应用调用 (LocationManager)requestLocationUpdates
  • 可以追溯到LocationManager.java,后者又调用ILocationManager(aidl文件)中定义的requestLocationUpdates
  • ILocationManager 在 LocationManagerService.java 中实现。
    但是 Eclipse 抱怨 ILocationManager$Stub$Proxy.requestLocationUpdates(...) source not found

是否可以链接 LocationManager ILocationManager LocationManagerService?
如果不是,我该如何调试 LocationManagerService 中的代码?

【问题讨论】:

    标签: android android-service android-source


    【解决方案1】:

    我的猜测是 LocationManagerService 是在 system_server 应用程序中运行的框架服务之一。 要单步执行其代码,请查看Debugging Android Framework services

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-01
      • 2013-01-21
      • 1970-01-01
      • 2016-07-12
      • 1970-01-01
      • 2010-09-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多