Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2010, 04:14 AM
Registered User
 
Join Date: Apr 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Intent Filter Category

I am having difficulty understanding intent filter categories. Wondering if someone can elaborate.

First, some seeming inconsistencies on Pg 145 of the book says

1. add an intent-filter tag to the component's manifest node using the following tags (though all the examples I see are within the activity node)

2. ACTION ... Each intent filter must have one and only one action tag (though the android documentation has examples all listing multiple action tags)

3. DEFAULT ... This is also necessary for Activities that are launched using an explicit intent (though the Android doc says - Therefore the DEFAULT category is required for all filters, expcet for those with the MAIN action and LAUNCHER category - intent filters are not consulted for explicit intents)

Anyway, I am having difficulty understanding DEFAULT, ALTERNATIVE, SELECTED_ALTERNATIVE, HOME (for example, I tried with no action and HOME category with SELECTED category to see if I would be asked at bootup or on clicking Home button to pick between my app and the system home screen - but nothing happened).

Thanks in advance
 
Old May 17th, 2010, 04:47 AM
Registered User
 
Join Date: Apr 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default some more on matches

Some more seeming inconsistencies.

P146 says (2.1) Action matches are made if the Intent filter has no action specified, but http://developer.android.com/guide/t...s-filters.html states if the filter fails to list any actions, all intents fail the test

3 Data match: Specifying no data values in an Intent filter will result in a match with all Intent data values , but http://developer.android.com/guide/t...s-filters.html says (b, c, d) if an intent object contains a URI and / or data type, the intent filter is required to have the exact same
 
Old May 18th, 2010, 08:50 AM
Registered User
 
Join Date: Apr 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default vnd

ok, after reading & rereading the android documentation (including menus) as well as the book, beginning to get a clearer idea on DEFAULT, ALTERNATIVE and SELECTED_ALTERNATIVE. Still not clear about how HOME works.

This chapter on Intents could definitely have more structure to the descriptions, I feel.

Anyway, on a slightly unrelated note, I was searching for what the "vnd" meant and I found a good description from way back 2007 here.

http://markmail.org/message/4qto6tizez2pyp4v





Similar Threads
Thread Thread Starter Forum Replies Last Post
Intent Resolution confusion fungi8210 BOOK: Professional Android 2 Application Development 3 March 10th, 2010 07:18 AM
Confused between the rules applied to Intent and Intent Filters fungi8210 BOOK: Professional Android 2 Application Development 1 March 10th, 2010 06:48 AM
SQL SERVER - Intent Lock carumuga SQL Server 2000 2 November 20th, 2007 05:53 AM
Add category on Blog highspeedwire BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 January 26th, 2007 05:35 PM
Listing Category then Items harpua Classic ASP Professional 3 December 12th, 2003 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.