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

You are currently viewing the BOOK: Beginning 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 March 7th, 2013, 10:37 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default All Fragment Activities

I have tried both writing the code out of the book and importing it. There are no errors, though when i run the activity the display is empty. I run the debugger and in the "Activity Thread" it highlights:

if (list == null) {

Out of:

public void registerOnActivityPausedListener(Activity activity,
OnActivityPausedListener listener) {
synchronized (mOnPauseListeners) {
ArrayList<OnActivityPausedListener> list = mOnPauseListeners.get(activity);
if (list == null) {
list = new ArrayList<OnActivityPausedListener>();
mOnPauseListeners.put(activity, list);
}
list.add(listener);
}
}


Please help. None of the fragments activities are working.
Reply With Quote
  #2 (permalink)  
Old June 6th, 2013, 09:38 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Any resolution to this problem?

I'm currently working through this book and also have problems with the Fragments code. There are no errors, but I noticed LinearLayout is highlighted in the main.xml file. With a message "set android:baselineAligned="false" for better performance.
I'm new to Android. Would a RelativeLayout for this particular exercise? I don't really know the difference...

Last edited by corllja; June 6th, 2013 at 09:57 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
issues with fragment project kd7vea BOOK: Beginning Android Tablet Application Development 0 January 8th, 2012 09:51 PM
Chapter 2- Activities nghelam2008 BOOK: Beginning Android Application Development 0 May 26th, 2011 05:58 AM
for-each on result tree fragment RoeZ XSLT 11 November 22nd, 2007 07:31 AM
un escape text to use as fragment brenchley XSLT 1 December 13th, 2005 10:25 AM



All times are GMT -4. The time now is 05:46 PM.


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