There is a method, in the main thread it works. But in AsyncTask knocks an error.

public ArrayList<String> fillList(File dir){ File[] files = dir.listFiles(); String d ; //ArrayList<String> url = new ArrayList<String>(); for(File file:files){ if(file.isDirectory()) fillList(file); else if(file.getAbsolutePath().endsWith(".mp3")) { int i = dir.toString().lastIndexOf("/"); d= dir.toString().substring(i+1); if (Collections.frequency(myList,d)>0) {} else{ myList.add(d); url.add(dir.toString()); } } //hash h = new hash(); //h.hashfol(c, url, "foldersurl"); //h.hashfol(c,myList,"folders"); } return myList; } 

There was another context for the hashfol method, but I removed it, anyway it’s an error. Log

 09-06 12:40:15.894 22005 22005 I dalvikvm com.google.android.talk Could not find method android.view.ViewGroup.isTransitionGroup, referenced from method fa 09-06 12:40:15.894 22005 22005 W dalvikvm com.google.android.talk VFY: unable to resolve virtual method 5478: Landroid/view/ViewGroup;.isTransitionGroup ()Z 09-06 12:40:15.894 22005 22005 D dalvikvm com.google.android.talk VFY: replacing opcode 0x6e at 0x000c 09-06 12:40:15.894 22005 22005 I dalvikvm com.google.android.talk Could not find method android.view.View.getTransitionName, referenced from method fa 09-06 12:40:15.894 22005 22005 W dalvikvm com.google.android.talk VFY: unable to resolve virtual method 5331: Landroid/view/View;.getTransitionName ()Ljava/lang/String; 09-06 12:40:15.894 22005 22005 D dalvikvm com.google.android.talk VFY: replacing opcode 0x6e at 0x0006 09-06 12:40:15.901 22005 22005 W dalvikvm com.google.android.talk VFY: unable to find class referenced in signature ([Landroid/app/RemoteInput;) 09-06 12:40:15.901 22005 22005 E dalvikvm com.google.android.talk Could not find class 'android.app.RemoteInput[]', referenced from method fa 09-06 12:40:15.901 22005 22005 W dalvikvm com.google.android.talk VFY: unable to resolve new-array 7163 ([Landroid/app/RemoteInput;) in Lf; 09-06 12:40:15.901 22005 22005 D dalvikvm com.google.android.talk VFY: replacing opcode 0x23 at 0x0005 09-06 12:40:15.933 22005 22005 W dalvikvm com.google.android.talk Unable to resolve superclass of Lcom/google/android/apps/hangouts/telephony/TeleConnectionService; (744) 09-06 12:40:15.933 22005 22005 W dalvikvm com.google.android.talk Link of class 'Lcom/google/android/apps/hangouts/telephony/TeleConnectionService;' failed 09-06 12:40:15.933 22005 22005 E dalvikvm com.google.android.talk Could not find class 'com.google.and 
  • What error gives? - Kromster
  • I do not know logag nothing is clear - user186301
  • But in general, this method can be performed in Async - user186301 September
  • Most likely somewhere there is an appeal to the main stream - donearh
  • The log is absolutely off topic. And the code is incorrect, where is the declaration of the myList variable? - Eugene Krivenja

0