Back to project page HistoryCleanerPro.
The source code is released under:
Copyright (c) 2014, John Phillips All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project HistoryCleanerPro listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ayros.historycleaner.cleaning.items; /*from w w w. j a v a 2 s .co m*/ import java.util.ArrayList; import java.util.List; import com.ayros.historycleaner.cleaning.Category; import com.ayros.historycleaner.cleaning.CleanItem; import com.ayros.historycleaner.helpers.PrefsModifier; import com.stericson.RootTools.RootTools; public class _AdobeReader_Recent extends CleanItem { public _AdobeReader_Recent(Category parent) { super(parent); } @Override public String getDisplayName() { return "Recently Opened"; } @Override public String getPackageName() { return "com.adobe.reader"; } @Override public List<String[]> getSavedData() { PrefsModifier pm = new PrefsModifier(getDataPath() + "/shared_prefs/com.adobe.reader.preferences.xml"); List<String[]> list = new ArrayList<String[]>(); list.add(new String[] { "File Path" }); int index = 0; String val; while ((val = pm.getValue("recentFile" + index)) != null) { list.add(new String[] { val }); index++; } return list; } @Override public boolean clean() { return RootTools.deleteFileOrDirectory(getDataPath() + "/shared_prefs/com.adobe.reader.preferences.xml", false); } }