Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android 4 Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 4 Application Development
This is the forum to discuss the Wrox book Professional Android 4 Application Development Reto Meier; ISBN: 978-1-1181-0227-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 4 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 Search this Thread Display Modes
  #1 (permalink)  
Old January 24th, 2013, 09:03 AM
Authorized User
Points: 89, Level: 1
Points: 89, Level: 1 Points: 89, Level: 1 Points: 89, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 27
Thanks: 1
Thanked 0 Times in 0 Posts
Default Problems to add support library in Eclipse

Hello Reto,

From your (very well informing and thorough!) book on p. 27, "incorporate a support library", i understood that when i inserted android-support-v4.jar in my build path, then i could support platforms with api 4 or above for classes that were introduced in api 11 for instance.
I installed via Android tools/support library after rigtht clicking the project in the package view and updated the java build path many times, but nothing helps to escape from the warnings that i use classes for API 11 and that the minimum SDK is lower.. So the only thing that helps is change the minimum in the manifest to 11.
It is only clear that for instance a class from api 11 like Notification.Builder, see chapter 10, is not covered by this support library.

Last edited by Kees; January 24th, 2013 at 03:46 PM.. Reason: The problem source is not as mentioned
Reply With Quote
  #2 (permalink)  
Old January 24th, 2013, 12:07 PM
Authorized User
Points: 89, Level: 1
Points: 89, Level: 1 Points: 89, Level: 1 Points: 89, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 27
Thanks: 1
Thanked 0 Times in 0 Posts
Smile Problem to add support library in Eclipse "solved"

After some more reading in the developers guide i found that the problem was not a bug in Eclipse but my expectation that i could just use an api 11 class like Notification.Builder with android-support-v4 to support an older platform than api 11. See page 410 in the book for instance.
So Notification.Builder is not present in the support lib, but when it is renamed to NotificationCompat.Builder, then it is recognised also with lower minimum SDK than 11
It is now apparent to me that just adding the support library to the java build path is not enough to use the same code for lower platforms. The code has also to be adapted for the classes that are involved...

Last edited by Kees; January 24th, 2013 at 04:01 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
problem with add web user control to Class library project hamed88 BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 0 May 5th, 2011 03:32 AM
Chapter 42 - How do I add a Component Library Project? Lammatron2000 BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 1 July 12th, 2010 09:09 AM
Adding to a class library using the List..Add BigJay86 C# 2 June 23rd, 2006 04:08 PM
Plugin problem of Eclipse with Struts inderjeet_79 BOOK: Professional Jakarta Struts 0 September 22nd, 2005 05:03 AM



All times are GMT -4. The time now is 09:40 PM.


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