[android-beginners] Re: File length is 0, which is not true... ?

2009-10-08 Thread joare...@googlemail.com
Does not work either: public void getFileFromInternet(String tempUrl) { HttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(tempUrl);

[android-beginners] Re: File length is 0, which is not true... ?

2009-10-08 Thread Kaj Bjurman
Could be that the value of file.length is cached, and the file didn't exist when you started. What happens if you do: new File ("test.tmp").length() On 8 Okt, 14:26, "joare...@googlemail.com" wrote: > Hello, > > I really dont know why file.lengt returns 0 all the time, can u help > me ? > > pub