2014-11-09 69 views
7

我正在構建一個Android應用程序,並希望將搜索功能與Google Now Actions進行整合,如blog post中所述。在將應用推送到Play商店之前,有沒有辦法測試我的意圖過濾器(com.google.android.gms.actions.SEARCH_ACTION),搜索表達式處理等?我跟着documentation幷包括如下的意圖過濾器:如何觸發com.google.android.gms.actions.SEARCH_ACTION Google即時動​​作以進行測試?

<activity android:name=".SearchActivity"> 
    <intent-filter> 
    <action android:name="com.google.android.gms.actions.SEARCH_ACTION" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    </intent-filter> 
</activity> 

回答

16

是的,你可以使用adb活動管理器使用下面的語法來觸發活動:

亞行外殼日上午開始-a com.google.android.gms.actions.SEARCH_ACTION -e查詢 < 應用程序包這裏的名字 >

+0

嗨Jarek!我剛剛在YouTube上看到您的GoogleDevelopers談到「在Google Play應用內結算API中實施免費增值」。我認爲我發現了Billing API v3的文檔和邏輯流程存在一些嚴重問題,但我無法在Google上找到關於此的任何人。我可以請你看看這個問題:http://stackoverflow.com/questions/30921789/working-around-api-purchase-logic-flaws-for-consumables-in-google-plays-billing-轉發它Google的合適人選?謝謝! – 2016-01-14 00:53:34

+0

我無法以查詢常量空間開始,例如'-e查詢不正確的記錄「,您有任何建議嗎? – cuasodayleo 2017-12-20 09:38:59

相關問題