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: Beginning Android Tablet Application Development
This is the forum to discuss the Wrox book Beginning Android Tablet Application Development by Wei-Meng Lee; ISBN: 978-1-1181-0673-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Tablet 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 19th, 2011, 01:08 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tried Running Fragments Project

Need assistance, thanks.

Andriod SDK 4.0.3
Java SDK 1.6.23
Windows XP Latest Updates.
Using Eclipse for Project

All the files are typed as they are in the book.

There are numerous warnings andrroid.orientation and android.text.

Attribute is missing the Android namespace prefix for android.oreintation

[I18N] Hardcoded string "This is fragment #1", should use @string resource for android.txt



12-19 12:06:00.372: D/AndroidRuntime(544): Shutting down VM
12-19 12:06:00.372: W/dalvikvm(544): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
12-19 12:06:00.402: E/AndroidRuntime(544): FATAL EXCEPTION: main
12-19 12:06:00.402: E/AndroidRuntime(544): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.training.Fragments/net.training.Fragments.FragmentsActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1956)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1981)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread.access$600(ActivityThre ad.java:123)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1147)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.os.Handler.dispatchMessage(Handler.java:99 )
12-19 12:06:00.402: E/AndroidRuntime(544): at android.os.Looper.loop(Looper.java:137)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread.main(ActivityThread.jav a:4424)
12-19 12:06:00.402: E/AndroidRuntime(544): at java.lang.reflect.Method.invokeNative(Native Method)
12-19 12:06:00.402: E/AndroidRuntime(544): at java.lang.reflect.Method.invoke(Method.java:511)
12-19 12:06:00.402: E/AndroidRuntime(544): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:784)
12-19 12:06:00.402: E/AndroidRuntime(544): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:551)
12-19 12:06:00.402: E/AndroidRuntime(544): at dalvik.system.NativeStart.main(Native Method)
12-19 12:06:00.402: E/AndroidRuntime(544): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:697)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:739)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.inflate(LayoutInflater .java:489)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.inflate(LayoutInflater .java:396)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)
12-19 12:06:00.402: E/AndroidRuntime(544): at com.android.internal.policy.impl.PhoneWindow.setCo ntentView(PhoneWindow.java:251)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.Activity.setContentView(Activity.java: 1835)
12-19 12:06:00.402: E/AndroidRuntime(544): at net.training.Fragments.FragmentsActivity.onCreate( FragmentsActivity.java:11)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.Activity.performCreate(Activity.java:4 465)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1049)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1920)
12-19 12:06:00.402: E/AndroidRuntime(544): ... 11 more
12-19 12:06:00.402: E/AndroidRuntime(544): Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique android:id, android:tag, or have a parent with an id for null
12-19 12:06:00.402: E/AndroidRuntime(544): at android.app.Activity.onCreateView(Activity.java:42 16)
12-19 12:06:00.402: E/AndroidRuntime(544): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:673)
12-19 12:06:00.402: E/AndroidRuntime(544): ... 21 more
12-19 12:08:13.421: D/AndroidRuntime(564): Shutting down VM
12-19 12:08:13.421: W/dalvikvm(564): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
12-19 12:08:13.453: E/AndroidRuntime(564): FATAL EXCEPTION: main
12-19 12:08:13.453: E/AndroidRuntime(564): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.training.Fragments/net.training.Fragments.FragmentsActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1956)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1981)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread.access$600(ActivityThre ad.java:123)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1147)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.os.Handler.dispatchMessage(Handler.java:99 )
12-19 12:08:13.453: E/AndroidRuntime(564): at android.os.Looper.loop(Looper.java:137)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread.main(ActivityThread.jav a:4424)
12-19 12:08:13.453: E/AndroidRuntime(564): at java.lang.reflect.Method.invokeNative(Native Method)
12-19 12:08:13.453: E/AndroidRuntime(564): at java.lang.reflect.Method.invoke(Method.java:511)
12-19 12:08:13.453: E/AndroidRuntime(564): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:784)
12-19 12:08:13.453: E/AndroidRuntime(564): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:551)
12-19 12:08:13.453: E/AndroidRuntime(564): at dalvik.system.NativeStart.main(Native Method)
12-19 12:08:13.453: E/AndroidRuntime(564): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:697)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:739)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.inflate(LayoutInflater .java:489)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.inflate(LayoutInflater .java:396)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)
12-19 12:08:13.453: E/AndroidRuntime(564): at com.android.internal.policy.impl.PhoneWindow.setCo ntentView(PhoneWindow.java:251)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.Activity.setContentView(Activity.java: 1835)
12-19 12:08:13.453: E/AndroidRuntime(564): at net.training.Fragments.FragmentsActivity.onCreate( FragmentsActivity.java:11)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.Activity.performCreate(Activity.java:4 465)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1049)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1920)
12-19 12:08:13.453: E/AndroidRuntime(564): ... 11 more
12-19 12:08:13.453: E/AndroidRuntime(564): Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique android:id, android:tag, or have a parent with an id for null
12-19 12:08:13.453: E/AndroidRuntime(564): at android.app.Activity.onCreateView(Activity.java:42 16)
12-19 12:08:13.453: E/AndroidRuntime(564): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:673)
12-19 12:08:13.453: E/AndroidRuntime(564): ... 21 more
12-19 12:08:19.165: I/Process(564): Sending signal. PID: 564 SIG: 9
12-19 12:42:54.202: D/AndroidRuntime(594): Shutting down VM
12-19 12:42:54.202: W/dalvikvm(594): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
12-19 12:42:54.221: E/AndroidRuntime(594): FATAL EXCEPTION: main
12-19 12:42:54.221: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.training.Fragments/net.training.Fragments.FragmentsActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1956)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1981)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread.access$600(ActivityThre ad.java:123)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1147)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.os.Handler.dispatchMessage(Handler.java:99 )
12-19 12:42:54.221: E/AndroidRuntime(594): at android.os.Looper.loop(Looper.java:137)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread.main(ActivityThread.jav a:4424)
12-19 12:42:54.221: E/AndroidRuntime(594): at java.lang.reflect.Method.invokeNative(Native Method)
12-19 12:42:54.221: E/AndroidRuntime(594): at java.lang.reflect.Method.invoke(Method.java:511)
12-19 12:42:54.221: E/AndroidRuntime(594): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:784)
12-19 12:42:54.221: E/AndroidRuntime(594): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:551)
12-19 12:42:54.221: E/AndroidRuntime(594): at dalvik.system.NativeStart.main(Native Method)
12-19 12:42:54.221: E/AndroidRuntime(594): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:697)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.rInflate(LayoutInflate r.java:739)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater .java:489)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater .java:396)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)
12-19 12:42:54.221: E/AndroidRuntime(594): at com.android.internal.policy.impl.PhoneWindow.setCo ntentView(PhoneWindow.java:251)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.Activity.setContentView(Activity.java: 1835)
12-19 12:42:54.221: E/AndroidRuntime(594): at net.training.Fragments.FragmentsActivity.onCreate( FragmentsActivity.java:11)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.Activity.performCreate(Activity.java:4 465)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1049)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1920)
12-19 12:42:54.221: E/AndroidRuntime(594): ... 11 more
12-19 12:42:54.221: E/AndroidRuntime(594): Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique android:id, android:tag, or have a parent with an id for null
12-19 12:42:54.221: E/AndroidRuntime(594): at android.app.Activity.onCreateView(Activity.java:42 16)
12-19 12:42:54.221: E/AndroidRuntime(594): at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:673)
12-19 12:42:54.221: E/AndroidRuntime(594): ... 21 more
  #2 (permalink)  
Old December 19th, 2011, 01:50 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Book Intructions Compared to Actual Code

I started the thread. The code execises in chapter 2 in the book doesn't compare to the what was downloaded from the site there are multiple lines in the .java files that are not included in the book.
  #3 (permalink)  
Old January 9th, 2012, 09:01 PM
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Location: Utah
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kd7vea
Default

I am having a very similar problem. in your code do you get any warnings before you attempt to run it? I don't get any warnings, until I attempt to run it. everything seems to load fine, but once the fragments app pops upon the emulator, I get just a black screen and the android logo in the top corner, so it knows it should be running it, but it doesn't. we will see if the 2 of us can work this one out.
 


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
Chapter 12 - Running OfficialFileSTSADMCommand project gets Unhandled Exception. dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 September 3rd, 2009 09:52 PM
Running The Beerhouse as a Web Project charlestek BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 July 8th, 2009 06:13 PM
Getting error while running CaseStudy Project badercheema BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 March 27th, 2006 02:25 PM
WSAD error while running Hibernate Project sun_ice Hibernate 0 January 2nd, 2006 08:44 AM
Error while running/executing project thePhile seetha_l BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 11th, 2004 11:31 AM



All times are GMT -4. The time now is 02:32 AM.


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