Skip to content

Commit

Permalink
issue NetEase#10:Memory above 1000;Improvement:List the application w…
Browse files Browse the repository at this point in the history
…ith alphabet order
  • Loading branch information
andrewleo committed Nov 26, 2013
1 parent 2e1bdf6 commit dd13f5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<classpathentry kind="lib" path="libs/mail.jar"/>
<classpathentry kind="lib" path="libs/additionnal.jar"/>
<classpathentry kind="lib" path="libs/android-support-v4.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
1 change: 1 addition & 0 deletions src/com/netease/qa/emmagee/utils/CpuInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public ArrayList<String> getCpuRatioInfo(String totalBatt,
String currentBatt, String temperature, String voltage) {

DecimalFormat fomart = new DecimalFormat();
// fomart.setGroupingUsed(false);
fomart.setMaximumFractionDigits(2);
fomart.setMinimumFractionDigits(2);

Expand Down
2 changes: 2 additions & 0 deletions src/com/netease/qa/emmagee/utils/ProcessInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.netease.qa.emmagee.utils;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import android.app.ActivityManager;
Expand Down Expand Up @@ -81,6 +82,7 @@ public List<Programe> getRunningProcess(Context context) {
}
progressList.add(programe);
}
Collections.sort(progressList);
return progressList;
}

Expand Down
7 changes: 6 additions & 1 deletion src/com/netease/qa/emmagee/utils/Programe.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author andrewleo
*/
public class Programe {
public class Programe implements Comparable<Programe> {
private Drawable icon;
private String processName;
private String packageName;
Expand Down Expand Up @@ -71,4 +71,9 @@ public int getPid() {
public void setPid(int pid) {
this.pid = pid;
}

@Override
public int compareTo(Programe arg0) {
return (this.getProcessName().compareTo(arg0.getProcessName()));
}
}

0 comments on commit dd13f5b

Please sign in to comment.