【发布时间】:2015-06-19 06:33:01
【问题描述】:
我们需要启动 Sync Adapter 服务还是隐式启动框架?我已经在同步适配器服务的Constructor、onCreate、onDestroy 上添加了日志,当我启动应用程序时,我在 logcat 中看不到日志。
但是当我做活动时onCreate
Intent serviceIntent = new Intent(context, SyncService.class);
context.startService(serviceIntent);
我看到了日志。
请建议。
干杯, 拉杰
【问题讨论】:
标签: android android-intent android-activity android-service android-syncadapter