Get Images from link and store in movie folder on andriod

                            URL url = new URL(R.string.VM_01 + "movie_image/scene/kung_fu_panda_2/kung_fu_panda_2_1.jpg");
                            InputStream is = url.openStream();
                            OutputStream os = new FileOutputStream( "movie/pic/large/kung_fu_panda_2_1.jpg");
                         
                            byte[] b = new byte[2048];
                            int length;
                            while ((length = is.read(b)) != -1) {
                                os.write(b, 0, length);
                            }
                            is.close();
                            os.close();

Bu blogdaki popüler yayınlar

About Android padding, margin, width, height, wrap_content, match_parent, R Class

@SerializedName and @Expose annotations