1

我發現一個推固定器的應用程序使用如何刪除Android GCM中的延遲?

com.google.android.intent.action.MCS_HEARTBEAT 
com.google.android.intent.action.GTALK_HEARTBEAT 

,但不知道如何使用它們和Android的播放它們。

請幫助我新到Android ...

我想在GCM刪除延遲

也想知道如何設置心跳間隔

感謝

+0

http://forum.xda-developers.com/showthread.php?t=2516849 –

+0

我必須在我的應用程序中實現不能使用任何應用程序... – Punit

+0

非常感謝! 我找到了我的答案... – Punit

回答

0

要觸發心跳必須發送這些廣播:

context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT")); context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));

+0

我不明白的是,這些廣播如何解決這個問題。我們不會在這裏發送任何類似「2分鐘」的內容 – penduDev