Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在将 twitter 集成到我的 android 应用程序中。我们正在使用 Twitter4j 库,并且能够通过 gettimeline APIs 读取推文。
任何知道将在我的应用程序中直接调用回调函数的 API(来自 twitter 或编写在库中)的人。我的目的是避免在应用程序中定期调用 api。
任何人都可以帮忙吗?
问候, Dhanesh
这可以通过 twitter4j 的流 API 来完成,不是吗?
否则每 30 分钟左右使用一次 AlarmManager 将是一个很好的解决方案。或者从谷歌使用云到设备。