在 Android 中,有没有办法阻止库存联系人应用程序编辑自定义同步适配器中的联系人?
我创建了一个自定义联系人同步适配器和一个用于编辑自定义联系人的联系人数据的应用程序。无论如何,股票应用程序都无法编辑它们——它只允许编辑名称。我还设置了我的编辑器应用程序以具有编辑意图,以便当用户尝试编辑联系人时,他们可以选择使用哪个应用程序(当前是股票联系人应用程序或我的应用程序)。我希望发生的是,如果他们选择库存应用程序(他们无法真正编辑任何数据),他们应该得到一个错误,必须使用我的自定义应用程序编辑这些联系人。
或者更好的是,如果可能的话,让他们在尝试编辑自定义同步联系人之一时,甚至不应该让他们选择在库存应用程序(或与此相关的任何其他应用程序)中执行此操作。他们可以直接访问我的联系人编辑器应用程序,而不提示选择该应用程序吗?任何其他联系人都可以使用股票应用程序打开。
谢谢
I've created a custom contacts sync adapter, and an app to to edit the contact data for the custom contacts. The stock app can't edit them anyway -- it would only allow editing of the name. I've also set up my editor app to have the EDIT inten, so that when a user tries to edit a contact, they will be given a choice of which app to use (currently either the stock contacts app or my app). What I would like to happen is that if they choose the stock app (where they can't really edit any data), they should be given an error that these contacts have to be edited using my custom app.
Or even better, if it's possible, make it so that if they try to edit one of the custm syched contacts, it should not even give them the choice to do it in the stock app (or any other app for that matter). Can they be tken directly to my contact editor app without being prompted to choose the app? And any other contacts could be opened using the stock app.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看此处
您可以添加对联系人的个人资料操作,您可以从中打开应用程序来编辑联系人。在这种情况下,您的应用程序将被直接调用。
Please look here
You can add a profile action to the contact and from that you can open your application to edit the contact. In this case your application will be called directly.