Android Open Source - Android-Parse.com-GridView-Tutorial Utils






From Project

Back to project page Android-Parse.com-GridView-Tutorial.

License

The source code is released under:

Apache License

If you think the Android project Android-Parse.com-GridView-Tutorial listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.androidbegin.parsegridview;
import java.io.InputStream;
import java.io.OutputStream;
//from w  w w . j a v  a2  s.  c  om
public class Utils {
    public static void CopyStream(InputStream is, OutputStream os)
    {
        final int buffer_size=1024;
        try
        {
            byte[] bytes=new byte[buffer_size];
            for(;;)
            {
              int count=is.read(bytes, 0, buffer_size);
              if(count==-1)
                  break;
              os.write(bytes, 0, count);
            }
        }
        catch(Exception ex){}
    }
}




Java Source Code List

com.androidbegin.parsegridview.FileCache.java
com.androidbegin.parsegridview.GridViewAdapter.java
com.androidbegin.parsegridview.ImageLoader.java
com.androidbegin.parsegridview.MainActivity.java
com.androidbegin.parsegridview.MemoryCache.java
com.androidbegin.parsegridview.ParseApplication.java
com.androidbegin.parsegridview.PhoneList.java
com.androidbegin.parsegridview.SingleItemView.java
com.androidbegin.parsegridview.Utils.java