FOR DEBUGGING ONLY: add remaining Activity lifecycle methods so

they'll get logged, and log this ptr as well.
This commit is contained in:
Andy2 2011-07-18 06:43:40 -07:00
parent aa304772c6
commit b2d5336fbb
2 changed files with 38 additions and 8 deletions

View file

@ -38,7 +38,7 @@ public class XWActivity extends Activity {
protected void onCreate( Bundle savedInstanceState )
{
Utils.logf( "%s.onCreate()", getClass().getName() );
Utils.logf( "%s.onCreate(this=%p)", getClass().getName(), this );
super.onCreate( savedInstanceState );
m_delegate = new DlgDelegate( this );
}
@ -46,15 +46,29 @@ public class XWActivity extends Activity {
@Override
protected void onStart()
{
Utils.logf( "%s.onStart()", getClass().getName() );
Utils.logf( "%s.onStart(this=%p)", getClass().getName(), this );
super.onStart();
DispatchNotify.SetRunning( this );
}
@Override
protected void onResume()
{
Utils.logf( "%s.onResume(this=%p)", getClass().getName(), this );
super.onResume();
}
@Override
protected void onPause()
{
Utils.logf( "%s.onPause(this=%p)", getClass().getName(), this );
super.onPause();
}
@Override
protected void onStop()
{
Utils.logf( "%s.onStop()", getClass().getName() );
Utils.logf( "%s.onStop(this=%p)", getClass().getName(), this );
DispatchNotify.ClearRunning( this );
super.onStop();
}
@ -62,7 +76,8 @@ public class XWActivity extends Activity {
@Override
protected void onDestroy()
{
Utils.logf( "%s.onDestroy()", getClass().getName() );
Utils.logf( "%s.onDestroy(this=%p); isFinishing=%s",
getClass().getName(), this, isFinishing()?"true":"false" );
super.onDestroy();
}

View file

@ -33,7 +33,7 @@ public class XWListActivity extends ListActivity {
@Override
protected void onCreate( Bundle savedInstanceState )
{
Utils.logf( "%s.onCreate()", getClass().getName() );
Utils.logf( "%s.onCreate(this=%p)", getClass().getName(), this );
super.onCreate( savedInstanceState );
m_delegate = new DlgDelegate( this );
}
@ -41,15 +41,29 @@ public class XWListActivity extends ListActivity {
@Override
protected void onStart()
{
Utils.logf( "%s.onStart", getClass().getName() );
Utils.logf( "%s.onStart(this=%p)", getClass().getName(), this );
super.onStart();
DispatchNotify.SetRunning( this );
}
@Override
protected void onResume()
{
Utils.logf( "%s.onResume(this=%p)", getClass().getName(), this );
super.onResume();
}
@Override
protected void onPause()
{
Utils.logf( "%s.onPause(this=%p)", getClass().getName(), this );
super.onPause();
}
@Override
protected void onStop()
{
Utils.logf( "%s.onStop", getClass().getName() );
Utils.logf( "%s.onStop(this=%p)", getClass().getName(), this );
DispatchNotify.ClearRunning( this );
super.onStop();
}
@ -57,7 +71,8 @@ public class XWListActivity extends ListActivity {
@Override
protected void onDestroy()
{
Utils.logf( "%s.onDestroy", getClass().getName() );
Utils.logf( "%s.onDestroy(this=%p); isFinishing=%s",
getClass().getName(), this, isFinishing()?"true":"false" );
super.onDestroy();
}