提交 a43524f3 编写于 作者: A andrewleo

issue #10:Memory above 1000;Improvement:List the application with alphabet order

上级 2e1bdf67
......@@ -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>
......@@ -144,6 +144,7 @@ public class CpuInfo {
String currentBatt, String temperature, String voltage) {
DecimalFormat fomart = new DecimalFormat();
// fomart.setGroupingUsed(false);
fomart.setMaximumFractionDigits(2);
fomart.setMinimumFractionDigits(2);
......
......@@ -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;
......@@ -81,6 +82,7 @@ public class ProcessInfo {
}
progressList.add(programe);
}
Collections.sort(progressList);
return progressList;
}
......
......@@ -16,6 +16,7 @@
*/
package com.netease.qa.emmagee.utils;
import android.graphics.drawable.Drawable;
/**
......@@ -24,7 +25,7 @@ import android.graphics.drawable.Drawable;
*
* @author andrewleo
*/
public class Programe {
public class Programe implements Comparable<Programe>{
private Drawable icon;
private String processName;
private String packageName;
......@@ -71,4 +72,9 @@ public class Programe {
public void setPid(int pid) {
this.pid = pid;
}
@Override
public int compareTo(Programe arg0) {
return (this.getProcessName().compareTo(arg0.getProcessName()));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册