简体   繁体   English

将新的用户资料与Android设备上的现有公司资料链接在一起?

[英]linking new user profiles with existing company profiles on Android device?

I'll try to be as clear as possible out here. 我会在这里尽量清楚。 I'm working on an android application which is more like a phone directory where I have a big database and I want the new users to claim their company profile which is already registered in our database. 我正在开发一个Android应用程序,该应用程序更像一个电话目录,在该目录中我有一个大数据库,我希望新用户声明他们的公司资料,该公司资料已在我们的数据库中注册。 The new users should get the privilege to edit information like phone number, email id and address on their company profile once I manually approve them on the server side. 一旦我在服务器端手动批准了新用户,他们应该有权在其公司资料上编辑电话号码,电子邮件ID和地址等信息。

You can check the attached image for better understanding. 您可以检查附件图像以更好地理解。

Photo 照片

When a user clicks on the claim profile button then I should get a notification on my server that a registered user has requested to claim that specific profile and I need to verify it. 当用户单击“声明个人资料”按钮时,我应该在服务器上收到通知,表明注册用户已要求声明该特定个人资料,我需要对其进行验证。 The user should be edit the details on the profile page once I verify it. 我确认用户后,应在配置文件页面上编辑用户的详细信息。

Can something like this be achieved on an Android device? 这样的事情可以在Android设备上实现吗?

There is a lot of work to do: 有很多工作要做:

  1. Prepare an web service on the server side to check user privilege and notify you. 在服务器端准备一个Web服务,以检查用户特权并通知您。
  2. Design an ImageButton and implement OnClickListener to call the web service. 设计一个ImageButton并实现OnClickListener来调用Web服务。
    Reference: http://thiranjith.com/2012/10/15/introduction-to-working-with-ksoap2-in-android/ 参考: http//thiranjith.com/2012/10/15/introduction-to-working-with-ksoap2-in-android/
  3. Change the icon of ImageButton to "refresh" while the result of web service is waiting for your approving. Web服务的结果正在等待您批准时,将ImageButton的图标更改为“刷新”。
  4. If the result of web service is approved, set the EditText enabled, change the icon of ImageButton to "save". 如果批准了Web服务的结果,则启用EditText,将ImageButton的图标更改为“保存”。
  5. And so on. 等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM