如何传递光标移动到另一活动? [英] How can I pass Cursor to another Activity?

查看:92
本文介绍了如何传递光标移动到另一活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要光标对象传递到另一个活动,什么是做的最好方法是什么?

I need to pass Cursor object to another activity, what is the best way to do it?

推荐答案

您可以使用Application类分享你的光标对象,但它不是自娱自乐,因为它建议不要多使用静态引用,所以它能够更好地创建光标在另一项活动一个新的查询。

You can share you Cursor object using Application class, but it is not entertain because it is recommended not to use static reference much, So its Better to create cursor with a new query in another activity.

这篇关于如何传递光标移动到另一活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆