Back to project page FAST.
The source code is released under:
GNU General Public License
If you think the Android project FAST 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 org.ligi.fast.util; /*w w w . j a va 2s .com*/ import android.content.Context; import org.ligi.fast.model.AppInfo; import java.util.ArrayList; import java.util.List; public class PackageListSerializer { public static List<AppInfo> fromString(Context ctx, String inString) { List<AppInfo> res = new ArrayList<AppInfo>(); if (inString == null) { return res; } String[] lines = inString.split("\n"); for (String line : lines) { if (line.length() > 0) { AppInfo appInfo = new AppInfo(ctx, line); if (appInfo.isValid()) { res.add(appInfo); } } } return res; } }