如何使用默認(不想創建自己的)應用選擇器時,選擇應用的意圖...選擇器顯示,用戶選擇一個應用程序,我用特定的URI顯式調用它?內部應用選擇器
Intent intent = new Intent(Intent.ACTION_SEND);
// Create and start the chooser
Intent chooser = Intent.createChooser(intent, "title");
startActivity(chooser); //I dont want to start the intent ... just to know which one user chose
是什麼問題?你的代碼看起來不錯。您可以爲您的意圖添加一個類型,以篩選特定類型的數據。 e,g,intent.setType(「plain/text」); – Ran
我必須使用「geo:」標籤...有些應用程序不理解google實現的語法,並且需要特定的格式...我需要知道用戶想要運行哪一個,然後發送適當的uri – Flowy