如何保留在我的应用中保存地址的选项? [英] How do I keep an option for saving an address in my app?

查看:65
本文介绍了如何保留在我的应用中保存地址的选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中添加一个选项,用于为他们的Android应用程序保存像amazon和snapdeal这样的用户的地址。在下订单时,我们看到他们是保存地址的选项,在里面我们看到我们之前保存的地址。我正在开发这样的应用程序但我在本节中遇到问题我想保留一个保存地址的选项。当我们在亚马逊和snapdeal订购时,我还有一个问题,我们填写表格,他们取名字,手机号码和电子邮件地址,我们看到名称,手机号码和电子邮件地址已经自动填写。所以,我想知道如何在我的应用程序中执行此操作。请帮我 !!谢谢



我尝试了什么:



我已经设计了表单和布局,但我不知道该怎么办这个功能请帮助

I want to add an option in my app for saving an address for user like amazon and snapdeal do on their android application. During placing a order we see their is an option of saved address and inside that we see our previously saved address. I am developing a app like that but I am getting problem in this section I want to keep an option for saving address. ans yes I have one more question when we place a order on amazon and snapdeal we fill a form where they take name,mobile number and email address and we see the places of name, mobile number and email address has been already filled automatically. So, I want to know how can I do this in my app. Please Help Me !! Thanks

What I have tried:

I have already designed the form and layout but I don't know what can I do for this feature Please Help

推荐答案

您可以通过应用程序包在Android设备上存储任何数据。您想要构建的是电子商务网站或在线商店。这是非常艰难的,不是一个Android专用的应用程序。有一个庞大的服务器在后台运行,维护订单,日程安排和客户信息。 那些网站,有一个庞大的员工团队来管理一切 - 我并不是要让你失去理智,继续阅读。所以他们做的是,他们要求提供一次信息并存储以备将来使用。由于您已准备好表单,因此您现在可以考虑如何从数据访问层访问数据,该数据访问层可以是本地SQLite数据库或在线资源。



我会建议在网站上浏览,并了解它们的工作原理。所有数据都来自哪里?他们如何管理信息,存储什么订单,他们如何推荐产品。你会自己理解。



我写了一个与离线存储数据非常相似的答案,如何在网络配置中显示先前输入的值 [ ^ ]。



还有一件事:亚马逊和其他网站将数据存储在他们的服务器上,这样他们就可以重复使用他们应用程序的其他版本的数据 - 桌面,网络,其他移动设备。他们不再询问用户的地址,而是重复使用一次输入的数据。
You can store any data on the Android device itself, through your app's package. What you want to build is an eCommerce website, or an online store. That is quite tough and is not an Android-only app. There is a huge server running in the background maintaining the orders, schedules and customer information. Those website, have a large team of employees managing everything — I do not mean to demotivate you at all, keep reading. So what they do is, they ask for the information once and store it for future use. Since you have the forms ready, you can now consider how to access the data from a data-access layer, which can be local SQLite database or an online resource.

I will recommend surfing around the websites, and understanding how they work. Where does all the data come from? How they manage the information, what orders are stored, how they recommend products. You will understand all by yourself.

I wrote an answer which is quite similar to this one in the terms of storing data offline, How do I show the previously entered values in the network configuration[^].

One more thing: Amazon and other websites store the data on their servers, so that they can reuse the data on other versions of their apps — Desktop, web, other mobile devices. Instead of asking the user for their addresses, they reuse the data that was entered once.


这篇关于如何保留在我的应用中保存地址的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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