1

I am working on an android app. It supports multiple languages and locale. So, i need to develop different apks with different string.xml or I need to create only one apk for my application. Is there any disadvantage to create different apk for same application for different locale?

remudada
  • 3,751
  • 2
  • 33
  • 60
Tejinder Singh
  • 271
  • 1
  • 3
  • 7
  • Obviously, it's much better to have only one apk. And android provides a clever mechanism for that: http://developer.android.com/training/basics/supporting-devices/languages.html – Phantômaxx Jun 28 '14 at 09:13
  • possible duplicate of [how to add language support to android](http://stackoverflow.com/questions/3022187/how-to-add-language-support-to-android) – Phantômaxx Jun 28 '14 at 09:15

1 Answers1

0

You need to create only one apk. Put the different strings inside as many folders as you need for your languages. Example:

  • values

    • ...
    • strings.xml (default strings)
    • ...
  • values-es

    • strings.xml (spanish strings)
    • arrays.xml (spanish arrays)
  • values-en

    • strings.xml (english strings)
    • arrays.xml (english arrays)
Luciano Rodríguez
  • 2,239
  • 3
  • 19
  • 32