View Single Post
  #1 (permalink)  
Old March 7th, 2013, 10:37 PM
studmuddin studmuddin is offline
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