Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 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 July 22nd, 2010, 12:52 PM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Code examples import without Android library

My apologies if this is a stupid newbie question...

I'm using Eclipse (Heios Release) and have the Android SDK all configured as per the developer.android.com recommendations. I can create and run new projects without any problem but I can't import one of this book's code samples using Import > Existing Projects Into Workspace.

Importing a zip creates a project but it doesn't create it as an Android project and the console displays the error: "Project has no default.properties file! Edit the project properties to set one."

I've tried going into the project Properties but as soon as I click on 'Android' in the properties tree a pop-up appears saying "Could Not Accept Changes: The currently displayed page contains invalid values"

See: http://screencast.com/t/ZmY3ZWQ4

But if I do this on one of my own projects I have no such error, and I'm able to change things such as the Android Platform/API level.
Any help would be really appreciated!
Reply With Quote
  #2 (permalink)  
Old July 26th, 2010, 07:07 AM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resolved

This was answered for me on Stack Overflow:
http://stackoverflow.com/questions/3...s-into-eclipse

"All the baseline default.properties needs is a line like:

target=android-8"

You can copy another projects' default.properties into your project (choose one with the same API Level that you want). Then restart of Eclipse to rebuild the workspace.

NB you may find that your src folder includes a R.java file. You need to delete this as it is automatically created in the gen. Having two copies will generate an error.
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
CSV Import library for Products Guerra BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 7 August 5th, 2009 09:55 PM
com.google.android.maps library unavailable lz1234 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 June 7th, 2009 10:18 AM
code for examples marciann BOOK: Access 2003 VBA Programmer's Reference 3 February 20th, 2005 07:35 PM



All times are GMT -4. The time now is 07:34 AM.


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