如何在Android中使用SQLite将多个活动中的数据插入到单个表中? [英] How do I insert data from multiple activities into a single table using SQLite in Android?

查看:131
本文介绍了如何在Android中使用SQLite将多个活动中的数据插入到单个表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

告诉我一些关于我的问题的人...我有一个4,5页的形式,所以我必须将数据存储在android的数据库中并且表单属于一个人详细信息...所以告诉我怎么能我将来自多个活动的数据存储到一个表中...... ??





如果我在每个页面中制作一个表格.. ..然后我怎么能找到一个人的所有细节..... ??







这可能吗:

如果我在每个页面都制作一张桌子然后我加入所有页面的表格吗?







请以适当的例子给我答案...





谢谢你

tell me guys something about my question... i have a form of 4,5 pages so i have to store a data in database in android and the form is belongs to a person Details... so tell me how can i Store a data from multiple activities into a single table...??


if i make a table in every pages....then how can i find out all detail of a single person.....??



Is this possible :
if i make a table in every pages then i join a table of all pages?



please give me a answer with appropriate example...


thank you

推荐答案

你的设计方法是错误的。您不应该使用这么多形式来存储一个信息。而是使用 TabControl [ ^ ]或Multistep表格 [ ^ ]。

如果你跟着这个,那么你很高兴。



但是,如果没有看到你的代码。我们不能只告诉你你喜欢这个或这就是问题。



虽然看看这个更好的主意:

http://docwiki.embarcadero.com/RADStudio/Seattle/en/Mobile_Tutorial:_Using_Tab_Components_to_Display_Pages_( iOS_and_Android) [ ^ ]



-KR
You're designing approach is wrong. You shouldn't use this many form for storing one information. Rather use TabControl[^] or Multistep Form[^].
If you're following this, then you're good to go.

But still, it's hard to tell without seeing you're code. We cannot just tell you "you do like this" or "this is the issue".

Though look at this for better idea:
http://docwiki.embarcadero.com/RADStudio/Seattle/en/Mobile_Tutorial:_Using_Tab_Components_to_Display_Pages_(iOS_and_Android)[^]

-KR


这篇关于如何在Android中使用SQLite将多个活动中的数据插入到单个表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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