Tuesday, 15 February 2011

android - Java project error -



android - Java project error -

i error eclipse:

the constructor file(list<string>) undefined

at part of code

public void deletefunction(int id){ toast.maketext(this, "sters", toast.length_short).show(); file file = new file(path); boolean deleted = file.delete(); }

because path arraylist , need pass path of file path arraylist instead of whole arraylist alter code as:

public void deletefunction(int id){ //... if(id<path.size()){ file file = new file(path.get(id)); boolean deleted = file.delete(); } }

java android

No comments:

Post a Comment