0

In my drawable folder, I have several files that are written in Russian.

I have a program that iterates through the files inside the folder and saves their ids for future use. I tested it, it works, but it skips files that are written in Russian. How can I make Android recognize those files?

Alexey
  • 3,607
  • 8
  • 34
  • 54
  • change your mobile language to russian and try again. – Mohammad Ersan Jun 26 '13 at 01:44
  • The phone does't have the option. Plus, if I'm deploying the picture, I don't want all the phones to do that. – Alexey Jun 26 '13 at 02:01
  • as far as I know, the localized string resources should be place in values-xx , not in drawable ? right? Correct me if I'm wrong. – toantran Jun 26 '13 at 02:38
  • It is a picture. xxxxxxxx.jpg, where x's are all Russian letters. And it skips the file when reading it. – Alexey Jun 26 '13 at 02:42
  • ah, I understand your problem now. Can you check the generated R file, drawable class? Can you see the constant whose name is same as your picture file ? – toantran Jun 26 '13 at 03:19
  • 1
    Yes, then you can't access it because it's not understood when compiling. You may want to: 1/ Use another way of naming 2/ Ask for reason why Russian character in name can't be compiled. Good luck ;) – toantran Jun 26 '13 at 03:47
  • I thought that is what my question asked... – Alexey Jun 26 '13 at 04:11

0 Answers0