//非要这样做 参考如下 给你举个例子 取第二条记录。
Thread threadGetTop2=new Thead(new ThreadStart(GetTop2))
threadGetTop2.Start()
private void GetTop2()
{
//这里用ADO.NET打开连接
string sql="select top 1 * from (select top 2* from A order by id desc)t"
//拿到记录
}
直接定义个public static的全局变量,就可以了;可以保存在自定义的类、继承自Application的类、SharePreference等中的一个属性;另一个activity从这里面取数据,不用直接传递。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)