2014-09-25 73 views
0

我們正在使用安全的瀏覽器,我們可以允許應用程序在瀏覽器中的鏈接打開,方法是在策略中列出其URL方案。 我可以使用yammer:// url方案在iOS中打開Yammer應用程序。這對Android不起作用。有沒有人知道Android的Yammer URL方案。 我在清單中發現了這一點,但我不知道如何將其轉換爲我需要從Android上的瀏覽器打開Yammer應用程序的方案。Yammer URL scheme android

<intent-filter> 
<action 
android:name="android.intent.action.VIEW"/> 
<category 
Android:name="android.intent.category.DEFAULT"/> 
<category 
Android:name="android.intent.category.BROWSABLE"/> 
<data 
android:scheme="yammer" 
Android:hosts="threads"/> 

回答

2

也許你可以嘗試如下:

Intent url_intent = new Intent(Intent.ACTION_VIEW, 
Uri.parse("yammer://threads")); 
url_intent.addCategory(Intent.CATEGORY_BROWSABLE); 
startActivity(url_intent); 

這個工作對打開Yammer的應用