【问题标题】:Launching an intent to load Google Latitude from another application启动从另一个应用程序加载谷歌纵横的意图
【发布时间】:2012-03-14 23:39:02
【问题描述】:

谁能告诉我如何通过 android 中另一个应用程序的 Intent 启动 Google Latutide(只是到它的主屏幕)?

【问题讨论】:

    标签: android google-maps google-latitude


    【解决方案1】:

    如果你有一个 URI,你可以这样做:

    Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);

    startActivity(intent);

    【讨论】:

      【解决方案2】:

      谢谢,我设法做到了……

      Intent intent = new Intent();
      intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.LatitudeActivity");
      startActivity(intent);
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-10-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多