【问题标题】:how to open instagram user profile in native app如何在本机应用程序中打开 Instagram 用户个人资料
【发布时间】:2014-01-21 04:15:08
【问题描述】:

是否有在本机应用程序中通过意图打开像http://instagram.com/username 这样的instagram 用户配置文件,我们不应该默认链接到instagram brouser。

 intent.setData(Uri.parse("http://instagram.com/username"));

【问题讨论】:

  • 您是否尝试过为此目的集成 WebView。

标签: android profile instagram


【解决方案1】:

有一种命令行方法。您可以使用 am 命令让浏览器导航到给定的网络:

我开始 -a android.intent.action.VIEW -d http://instagram.com/username

【讨论】:

  • 这将打开一个网络浏览器,而不是 Instagram 应用程序。此外,您应该始终在已发布的应用程序中通过命令行使用意图。
猜你喜欢
  • 2014-02-25
  • 2019-04-15
  • 1970-01-01
  • 1970-01-01
  • 2016-06-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-12-11
相关资源
最近更新 更多