Skip to content

Commit

Permalink
Activity pause logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Aug 24, 2011
1 parent c19998c commit c69e832
Show file tree
Hide file tree
Showing 16 changed files with 97 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ protected void onResume() {
Utils.log("Activity:Resume:About");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:About");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Catalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Catalog");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Catalog");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Credits.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Credits");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Credits");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Discover.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ protected void onCreate(Bundle savedInstanceState) {
getListView().setOnItemClickListener(mOnClickListener);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Discover");
}

@Override
protected void onResume() {
super.onResume();
Expand Down
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Explore.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Explore");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Explore");
}
}
12 changes: 12 additions & 0 deletions src/com/arantius/tivocommander/Help.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@ protected void onCreate(Bundle savedInstanceState) {
findViewById(R.id.note_layout).setVisibility(View.VISIBLE);
}
}

@Override
protected void onResume() {
super.onResume();
Utils.log("Activity:Resume:Help");
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Help");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/MyShows.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,10 @@ protected void onResume() {
Utils.log("Activity:Resume:MyShows");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:MyShows");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Person");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Person");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Remote.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Remote");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Remote");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Search");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Search");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ protected void onResume() {
super.onResume();
Utils.log("Activity:Resume:Settings");
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Settings");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/SubscribeCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,10 @@ protected void onResume() {
Utils.log("Activity:Resume:SubscribeCollection");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:SubscribeCollection");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/SubscribeOffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ protected void onResume() {
Utils.log("Activity:Resume:SubscribeOffer");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:SubscribeOffer");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Suggestions.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,10 @@ protected void onResume() {
Utils.log("Activity:Resume:Suggestions");
MindRpc.init(this);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Suggestions");
}
}
6 changes: 6 additions & 0 deletions src/com/arantius/tivocommander/Upcoming.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,10 @@ protected String formatTime(JsonNode item) throws DateInPast {
dateFormatter.setTimeZone(TimeZone.getDefault());
return dateFormatter.format(playTime);
}

@Override
protected void onPause() {
super.onPause();
Utils.log("Activity:Pause:Upcoming");
}
}
2 changes: 1 addition & 1 deletion src/com/arantius/tivocommander/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

public class Utils {
private static boolean DEBUG = false;
private static final int LOG_DATA_SIZE = 50;
private static final int LOG_DATA_SIZE = 75;
private static final String LOG_TAG = "tivo_commander";
private static final int MAX_LOG_LEN = 4096;
private static final LinkedList<String> mLogData = new LinkedList<String>();
Expand Down

0 comments on commit c69e832

Please sign in to comment.