コード例 #1
0
        /**
         * make folder
         */
        //	@SuppressWarnings("deprecation")
        public void makeDir()
        {
            try{
                File fl = ct.getDir(Folder_pub, Context.MODE_WORLD_WRITEABLE);
                if (!fl.exists())
                {
                    fl.mkdir();
                }

                File fl1 = ct.getDir(Folder_images, Context.MODE_WORLD_WRITEABLE);
                if (!fl1.exists())
                {
                    fl1.mkdir();
                }

                File fl2 = ct.getDir(Folder_text, Context.MODE_WORLD_WRITEABLE);
                if (!fl2.exists())
                {
                    fl2.mkdir();
                }

                File fl3 = ct.getDir(Folder_icon, Context.MODE_WORLD_WRITEABLE);
                if (!fl3.exists())
                {
                    fl3.mkdir();
                }
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }