Back to project page Langleo.
The source code is released under:
Apache License
If you think the Android project Langleo 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.atteo.langleo_trial; //from ww w .j a va2 s. c o m import java.util.ArrayList; import android.os.Bundle; public class ImportFile { public String filename; public String fullpath; public ArrayList<String> lines; public Bundle toBundle() { Bundle b = new Bundle(); b.putString("filename", filename); b.putString("fullpath", fullpath); b.putStringArray("lines", lines.toArray(new String[lines.size()])); return b; } public void loadBundle(Bundle b) { filename = b.getString("filename"); fullpath = b.getString("fullpath"); String[] l = b.getStringArray("lines"); lines = new ArrayList<String>(); int len = l.length; for (int i = 0; i < len; i++) lines.add(l[i]); } }