设置某些应用的优先级不让被杀

 

1:设置配置文件 PromotionAppAdjList.ini

2:读取配置文件放数组

private ArrayList mPromotionAppAdjList = new ArrayList();
    private String PROMOTION_APP_ADJ_LIST = "/nwdappconfig/app/PromotionAppAdjList.ini";
    private void parsePromotionAppAdjList() {
        InputStream is = null;
        try {
            is = new FileInputStream(PROMOTION_APP_ADJ_LIST);
        } catch (FileNotFoundException e) {
            Log.w(TAG, "Couldn't find " + PROMOTION_APP_ADJ_LIST);
            return;
        }

        try {
            BufferedReader br = new BufferedReader(
                new InputStreamReader(is), 256);
            String line;
            while ((line = br.readLine()) != null) {
                line = line.trim();
                if (line.startsWith("#") || line.equals("")) {
                    continue;
                }
 

你可能感兴趣的:(手机性能)