2011-06-04 76 views
1

喜 爲一個月創建意圖後,現在我突然 擊中人牆的時候我通知的PendingIntent,我這樣做:android IntentService當意圖爲空時會出現什麼問題?

Intent intent = new Intent(getApplicationContext(), SendFileService.class); 
intent.putExtra("uuid", "123-456-34"); 

的SendFileService是IntentService

要我在IntentService onHandleIntentextras.getString("uuid");

令人驚訝的是空。

可能是什麼原因。 我甚至增加了一個action進行測試,但仍然相同。我明顯做了一些錯誤的事情或者失去了一些關於這方面的知識。

任何ide?

回答

2

the docs

名稱必須包括一個包前綴,例如應用com.android.contacts將使用的名稱,如「com.android.contacts.ShowAll」。

+0

謝謝。當然 – Erik 2011-06-05 05:59:41

相關問題