The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Mark Elston (133) [Avatar] Offline
Two things in this section of the book (4.1.4)

1. The discussion at the top of page 107 has a couple of typos (I think). Where it says:

...if an IntentFilter supports both the HOME and the ALTERNATIVE categories, it'll match an Intent for either HOME or CATEGORY. But if the IntentFilter doesn't provide any categories, it won't match HOME or CATEGORY.

I think the occurrences of CATEGORY (all caps) in this paragraph should be replaced with ALTERNATIVE, right?

2. Immediately after this is a listing of an IntentFilter with a category of "android.intent.category.DEFAULT". This is declared in the text to match an Intent created without any category. This seems to contradict the previous discussion where an IntentFilter with a category specified can only match Intents with the same category specified.

I went to the Android website and found that 'Android treats all implicit intents passed to startActivity() as if they contained at least one category: "android.intent.category.DEFAULT" '. So, this does match but this rule is not specified in the text. This should probably go into the next revision of the text.