Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.
  #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..


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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.