簡體   English   中英

如何使用Intent在Android上啟動衛星應用程序?

[英]How to use Intent to launch the satellite application on android?

Hai Frnds,我想知道使用Intent啟動衛星應用程序,我知道如何使用Intent啟動地圖應用程序,但是我想顯示衛星視圖而不是地圖視圖,我的代碼是

   uri = Uri.parse("geo:0,0?q=" + VALUE_baraddress1[0] + ", "
            + VALUE_baraddress2[0] + ", "
            + VALUE_baraddress3[0]);
            Log.v(TAG, VALUE_baraddress1[0] + ", "
            + VALUE_baraddress2[0] + ", "
            + VALUE_baraddress3[0]);
  startActivity(new Intent(Intent.ACTION_VIEW, uri));

您發布的代碼是醒來的streetview FO特定的GeoPoint。 如果您想在Google地圖上放置圖釘,則必須更改uri值。 這些在文檔本身中都有很好的解釋。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM