Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.