在我的 Android 应用程序中,我需要通过 Google 让手机“签入”以获取市场更新。这可以由用户通过打开拨号器并键入“ *#*#CHECKIN#*#*
”来手动完成。我的应用程序需要能够做同样的事情。
我很肯定这是使用 Intent 完成的。一些挖掘表明警报管理器有这个待处理的意图等待:
RTC_WAKEUP #5: Alarm{44b1ee18 type 0 com.google.android.server.checkin}
type=0 when=1277981220358 repeatInterval=40212000 count=0
operation=PendingIntent{44b256c0: PendingIntentRecord{44c26a80 com.google.android.server.checkin broadcastIntent}}
现在的问题是,如何让我的应用程序广播这种相同类型的 Intent?我在活动中尝试了 this.sendBroadcast(myIntent) 没有运气,所以我现在很困惑。
有什么想法吗?