Chrome自定义标签在打开深层链接时停止(Chrome custom tab stopping when opening deeplink through it)
当我在Chrome自定义标签中启动深层链接(指向应用内活动)时,应用程序将关闭。 还不知道任何原因。 我正在使用Branch.io进行深层链接。
预期的行为是打开从链接重定向的活动。
更多详情:
- 在我的应用程序中,有活动A,我点击了活动A内的链接
- 通过从活动A调用launchUrl(),可以在Chrome CustomTabs中打开该链接
- 现在,从活动A点击的链接实际上是一个深层链接,浏览器的行为是,它从我的浏览器打开我的应用程序活动B.
- 但是当此链接打开CustomChromeTab我的应用程序关闭时,无需根据需要转到活动B.
- 最后我在logcat中看不到任何错误
When I launch a deep-link(which directs to within app activity) inside chrome custom tabs,than app gets closed. Not able to figure out any reason yet. I am using Branch.io for deeplinking.
Expected behavior is to open the activity which is redirected from link.
For More Detail:
- Inside my application,there is Activity A, I clicked on a link inside Activity A
- Than that link opens in Chrome CustomTabs by calling launchUrl() from Activity A
- Now That link which was clicked from Activity A is actually a Deep Link, of which browser behavior was, it open my Application Activity B from my browser
- But when this link opens CustomChromeTab My application Closes, without going to Activity B as desired
- Lastly I cannot see any error in logcat
原文:https://stackoverflow.com/questions/39867094
最满意答案
我终于遇到了问题。 我搜索了5个小时如何建立一个新的数据库连接,并意识到我没有MySQL连接选项。 所以我找到了这条线索 ,它让我走上了一条好路。 之后,我发现这是因为我无法为Visual Studio安装MySQL。 我遵循这两个步骤:
在此处下载并安装不带MySQL安装程序的Visual Studio组件的MySQL
- 下载并安装“Connector / NET”V6.9.10。 “mysql-connector-net-6.9.10.msi” 在这里
之后,我开始了Visual Studio,并且Design Surface表现出色,并且我可以直接从数据库中更新我的模型:D
编辑:我刚看到MySQL for visual studio没有正确安装。 事实上,它在安装结束时回滚,并且在“新建数据库连接”窗口中没有Mysql Database选项:/有人知道这是关于什么吗?
编辑解决方案原来,我已经在C:以外的其他磁盘上安装了Visual Studio,并且Visual Studio Installer的mysql不喜欢这样。 现在我在添加新连接时看到列表中的“MySql数据库”。
I finally came accross my problem. I searched for like 5 hours how to make a new database connection and realised I had no option with MySQL connection. So I found this thread and it led me on the good path. After, I found this cause I weren't able to install MySQL for Visual Studio. I followed these two steps:
Download and install the MySQL for Visual Studio component without the MySQL installer here
- Download and install the "Connector/NET" V6.9.10. "mysql-connector-net-6.9.10.msi" here
After that I started Visual Studio and the Design Surface showed up well, and I was directly able to Update my model from the Database :D
EDIT: I just saw that MySQL for visual studio wasn't installed properly. In fact, it rolls back up at the end of the installation, and I have no Mysql Database option on the "new Database connection" window :/ Does somebody know what this is about ?
EDIT SOLUTION Turns out that I had installed Visual Studio on an other disk than C: and mysql for visual studio Installer didn't like that. Now I see "MySql Database" in the list when adding a new connection.
相关问答
更多-
我有同样的问题,所以我没有依赖连接字符串中的所有元数据(我认为这不是一个好主意),而是编写了一个方法来从标准连接字符串中创建它。 (我可能应该将它重构为DbContext的扩展方法,但这应该做到) internal static class ContextConnectionStringBuilder { // Modified Version of http://stackoverflow.com/a/2294308/209259 public static string GetEntityCon ...
-
这在我身上发生过几次,通常是在从颠覆中拉出一个解决方案时。 重建项目一直为我解决了这个问题。 Fixed by deleting the file and regenerating it.
-
看起来实体框架并不知道如何处理数据类型,如表字段上的hierarchyid集。 我删除了Production.Document表中的实体列表,以包含解决我的问题。 还要注意,下面的参考文献是针对代码Plex SQL Sever的EF版本为1.0的Adventureworks 2008R2,并且我使用EF版本4.4的相同CodePlex站点使用Adventureworks 2012。 参考: http : //msftdbprodsamples.codeplex.com/wikipage ?title = A ...
-
实体框架EDMX Diagram表在更新后缺少属性(Entity Framework EDMX Diagram table missing properties after update)[2022-04-21]
修好了。 我不得不删除XML文件中对新属性的所有引用。 然后从数据库过程重新创建更新模型,这次确保两个复选框,其中勾选,Pluralize或单个化生成的对象名称,并在模型中包含外键列(我以为我第一次勾选这些,但我没有)。 这解决了我的问题。 Got it fixed. I had to delete all references to the new properties in the XML file. Then recreate the update model from database proced ... -
挂钩创建意味着仅为属性支持字段指定默认值或在构造函数中设置它。 挂钩更新需要属性设置器中的逻辑 - 通常通过实现INotifyPropertyChanged接口来处理。 Hooking into creation means specifying the default value simply for property backing field or setting it in constructor. Hooking into updating requires logic in property s ...
-
您提供的链接涉及数据库架构更改后的模型更新,而不是它的位置。 edmx->元数据工件处理 - >复制到输出目录 删除模式定义文件作为应用程序资源 而不是res://*/MyProjectModel.csdl使用.\MyProjectModel.csdl 。 对于ssdl和msl也是如此。 从未使用MySqlConnector,但最后的providerName="System.Data.EntityClient"部分看起来很可疑。 Provider已被指定为MySql.Data.MySqlClient 。 T ...
-
听起来你的model / tt文件和输出文件之间的链接已被破坏。 您可以在文本编辑器中打开项目(vbproj)文件,然后查找test.edmx或testmodel.tt。 您应该在某个节点内找到其中一个或两个。 封闭节点中的文件是依赖于它们的文件。 猜测你会发现这是目前的TestModel1.vb。 您可以尝试编辑它并重新打开项目,但最简单的方法可能是排除现有的TestModel.vb并让visual studio使用它。 毕竟它应该是一个隐藏文件 It sounds like the linkage be ...
-
我终于遇到了问题。 我搜索了5个小时如何建立一个新的数据库连接,并意识到我没有MySQL连接选项。 所以我找到了这条线索 ,它让我走上了一条好路。 之后,我发现这是因为我无法为Visual Studio安装MySQL。 我遵循这两个步骤: 在此处下载并安装不带MySQL安装程序的Visual Studio组件的MySQL 下载并安装“Connector / NET”V6.9.10。 “mysql-connector-net-6.9.10.msi” 在这里 之后,我开始了Visual Studio,并且Des ...
-
想出问题了。 我必须将tnsnames.ora文件复制到我安装Oracle / client_1 / Network / Admin的位置,并在同一位置获取sqlnet.ora文件。 Figured the problem out. I had to copy the tnsnames.ora file over to where i installed Oracle/client_1/Network/Admin, AND get the sqlnet.ora file in that same locat ...
-
如何在visual studio 2012中使用.edmx设计器创建模型?(How to create a model using .edmx designer in visual studio 2012?)[2023-10-29]
这个视频是一个很好的教程: 我正在创建一个新的数据库 使用Model First使用框和线定义模型,然后生成数据库。 这是关于这个主题的MSDN文档: 实体框架设计器 从这个主要文档中,您可以深入了解许多主题,包括您想要的主题。 This video is an excellent tutorial: I am creating a new database Use Model First to define your model using boxes and lines and then generat ...