问题开我从浏览器的URL在Android应用程序 [英] Issue in open my application from browser url in android
问题描述
您好朋友我wnat打开我的申请表,浏览器的URL所以在我下面的menifest文件是我的code
Hello friends i wnat to open my application form browser url so in my menifest file below is my code
<activity
android:name=".Registration"
android:exported="true" >
<intent-filter>
<data
android:scheme="rentalandroid"/>
<category android:name="android.intent.category.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<action android:name="android.intent.action.VIEW" />
</intent-filter>
</activity>
和我想打开我的申请表Gmail应用程序这是我收到一个邮件和一个按钮在这里里面。所以,当我在那个时候那个按钮点击我的应用程序应该与登记屏幕打开,我设置方案为,所以我的 PHP开发人员设置上的邮件按钮,点击网址像下面
and i want to open my application form Gmail application which is i receive one mail and inside that one button over here . so when i click on that button at that time my application should be open with registration screen which i set scheme for that so my PHP developer set url in on mail button click like below
我的浏览器的网址是
http://secure.worldofrental.com/test/reg/36df6c69bf33fa39863e048a3018f899
<a href='.base_url("test/reg/".$row['accsesskey']).'>testlink</a>
以上使用我的Gmail code我不是能够点击该按钮,所以我不能浏览到我的应用程序,所以任何想法我怎么能解决这个问题?
Using above code in my gmail i m not able to click that button so i can not navigate to my application so any idea how can i solve this problem ?
推荐答案
您的URL方案应 rentalandroid
这个工作:结果
例如: rentalandroid://mywebsite.com
Your url scheme should be rentalandroid
for this to work:
Example: rentalandroid://mywebsite.com
<activity
android:name=".Registration"
android:exported="true" >
<intent-filter>
<data
android:scheme="rentalandroid"/>
<category android:name="android.intent.category.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<action android:name="android.intent.action.VIEW" />
</intent-filter>
</activity>
这篇关于问题开我从浏览器的URL在Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!