在启动屏幕中创建对象以供稍后使用

发布于 2024-12-21 14:44:17 字数 176 浏览 6 评论 0原文

我从 RSSfeed 中读取内容并创建该 feed 的对象。由于这需要时间,我想让它在闪屏期间读取提要。启动画面加载后,将出现扩展 TabActivity 的主菜单,单击选项卡后,将出现扩展 listActivity 的下一个活动。

将对象从启动屏幕获取到扩展 listActivity 的第三个活动屏幕的最佳方法是什么?

I read from a RSSfeed and create an object of that feed. As this takes time I want to have it read the feed during the spash screen. After the splash screen loads the Main Menu appears which extends TabActivity, after clicking a tab the next activity which which extends listActivity appears.

What is the best way to get the object from the spash screen to the 3rd Activity screen which extends the listActivity?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东走西顾 2024-12-28 14:44:17

您可以启动一个可以获取对象的服务,将其存储在内存(或数据库、文件等)中,然后在需要时使用它!

希望这有帮助!

you can start a service that can fetch the object, store it in the memory (or database, file, etc) and then use it whenever you want!

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文