Possible Duplicate:
Java - Convert number to string
private String getHome() {
    String defaultHome = Environment.getExternalStorageDirectory().getAbsolutePath(); 
    File f = new File("/sdcard/download");
    File[] files = f.listFiles();
   for(int i=0; i < files.length; i++)
    {
        File file = files[i];
        //take the file name only
    long size = file.length()/1024;
    String path = file.getPath().substring(file.getPath().lastIndexOf("/")+1,file.getPath().length()).toLowerCase(); 
    String newString = size.toString();
    //String path = getSharedPreferences(PREF_TAG, 0).getString(PREF_HOME,defaultHome);
    //if (path.length()>1 && path.endsWith("/")) {
    //  path = path.substring(0,path.length()-2);
    //}
    //File pathFile = new File(path);
    if (file.exists() && file.isDirectory())
        return path+size;
    else
        return defaultHome+size;
    }
   return defaultHome;
}
 
     
     
     
    