¡@

Home 

2014/10/16 ¤W¤È 08:19:57

android Programming Glossary: namedfile

Java Can't create handler inside thread that has not called Looper.prepare()

http://stackoverflow.com/questions/10403858/java-cant-create-handler-inside-thread-that-has-not-called-looper-prepare

code and I have no idea what I'm doing wrong. static class NamedFile public File f public String name public String ext public String.. ext public String path public BitmapDrawable icon public NamedFile File file f file name f.getName if f.isFile if name.indexOf.. thread.start if icon null icon mFileIcon public NamedFile public NamedFile simpleClone final NamedFile nf new NamedFile..

Java Can't create handler inside thread that has not called Looper.prepare()

http://stackoverflow.com/questions/10403858/java-cant-create-handler-inside-thread-that-has-not-called-looper-prepare

but I couldn't find any that fixed my problem. This is my code and I have no idea what I'm doing wrong. static class NamedFile public File f public String name public String ext public String path public BitmapDrawable icon public NamedFile File file.. NamedFile public File f public String name public String ext public String path public BitmapDrawable icon public NamedFile File file f file name f.getName if f.isFile if name.indexOf '.' 1 ext name.substring name.lastIndexOf '.' 1 .trim .toLowerCase.. message catch Exception e sendLog e.toString thread.start if icon null icon mFileIcon public NamedFile public NamedFile simpleClone final NamedFile nf new NamedFile nf.name name nf.ext ext nf.path path return nf This is nested..