mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
add activity lifecycle logging, off by default
This commit is contained in:
parent
9b845634e0
commit
321a6e7e73
3 changed files with 37 additions and 0 deletions
|
@ -34,6 +34,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
|
||||
protected void onCreate( Bundle savedInstanceState, DelegateBase dlgt )
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onCreate()", getClass().getName() );
|
||||
}
|
||||
super.onCreate( savedInstanceState );
|
||||
m_dlgt = dlgt;
|
||||
|
||||
|
@ -55,6 +58,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
@Override
|
||||
protected void onPause()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onPause()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onPause();
|
||||
super.onPause();
|
||||
}
|
||||
|
@ -62,6 +68,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
@Override
|
||||
protected void onResume()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onResume()", getClass().getName() );
|
||||
}
|
||||
super.onResume();
|
||||
m_dlgt.onResume();
|
||||
}
|
||||
|
@ -69,6 +78,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
@Override
|
||||
protected void onStart()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onStart()", getClass().getName() );
|
||||
}
|
||||
super.onStart();
|
||||
m_dlgt.onStart();
|
||||
}
|
||||
|
@ -76,6 +88,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
@Override
|
||||
protected void onStop()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onStop()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onStop();
|
||||
super.onStop();
|
||||
}
|
||||
|
@ -83,6 +98,9 @@ public class XWActivity extends Activity implements Delegator {
|
|||
@Override
|
||||
protected void onDestroy()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onDestroy()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onDestroy();
|
||||
super.onDestroy();
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ public class XWApp extends Application {
|
|||
public static final boolean ATTACH_SUPPORTED = true;
|
||||
public static final boolean REMATCH_SUPPORTED = false;
|
||||
public static final boolean DEBUG_LOCKS = false;
|
||||
public static final boolean LOG_LIFECYLE = false;
|
||||
public static final boolean DEBUG_EXP_TIMERS = false;
|
||||
public static final boolean GCM_IGNORED = false;
|
||||
public static final boolean UDP_ENABLED = true;
|
||||
|
|
|
@ -33,6 +33,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
|
||||
protected void onCreate( Bundle savedInstanceState, DelegateBase dlgt )
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onCreate()", getClass().getName() );
|
||||
}
|
||||
super.onCreate( savedInstanceState );
|
||||
m_dlgt = dlgt;
|
||||
|
||||
|
@ -54,6 +57,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
@Override
|
||||
protected void onPause()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onPause()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onPause();
|
||||
super.onPause();
|
||||
}
|
||||
|
@ -61,6 +67,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
@Override
|
||||
protected void onResume()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onResume()", getClass().getName() );
|
||||
}
|
||||
super.onResume();
|
||||
m_dlgt.onResume();
|
||||
}
|
||||
|
@ -68,6 +77,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
@Override
|
||||
protected void onStart()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onStart()", getClass().getName() );
|
||||
}
|
||||
super.onStart();
|
||||
m_dlgt.onStart();
|
||||
}
|
||||
|
@ -75,6 +87,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
@Override
|
||||
protected void onStop()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onStop()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onStop();
|
||||
super.onStop();
|
||||
}
|
||||
|
@ -82,6 +97,9 @@ public class XWListActivity extends ListActivity implements ListDelegator {
|
|||
@Override
|
||||
protected void onDestroy()
|
||||
{
|
||||
if ( XWApp.LOG_LIFECYLE ) {
|
||||
DbgUtils.logf( "%s.onDestroy()", getClass().getName() );
|
||||
}
|
||||
m_dlgt.onDestroy();
|
||||
super.onDestroy();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue