Android Question strange problem > autocompleteedittext

tufanv

Expert
Licensed User
Longtime User
Hello,

In my previous app this code works well but in my new app it doesnt work

B4X:
Dim pic As List
  pic = File.ReadList(File.DirAssets, "mek.txt")
  actairports.SetItems(pic)

i have put mek.txt into files but it doesnot give any result while typing anything.

Any ideas ?
 

tufanv

Expert
Licensed User
Longtime User
the zip file does not contain it but in my pc it exists.
i used export as zip for you and it does not contain but in reality it exists and still not work :/
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Don't ignore the warnings. They told you that you haven't added the file to files tab. The solution is to click on the Sync button.

About the list issue. See the values with the debugger:

SS-2014-06-25_14.18.32.png


You can see that there is an encoding issue.

Either change the encoding to UTF8 or use TextReader to read the file with the correct encoding. Tip: use Notepad++ to edit the file and change the encoding.
 
Upvote 0
Top