NewImage

 

You can create a multi language android application with Android Studio. Go to Res -> Values-> String.xml folder and right click to choose Open Translation Editor. Translation editor support BCP 47 and will change the locale of the android system including date, time, currency and decimal.

 

NewImage

 

To add language, select the Globe Icon and enter the language. Values-* folder with a strings.xml file is added to the project. For example, values-es for Spanish.

NewImage

 

View translated text in design view.

 

NewImage

 



This is the code to convert old android key.pk8 to android keystone. For example you have the certificate.pem and and key.pk8 of your old android apps.. How to convert to the new android keystore to upload your apps to Google Play store.?

Step 1: Download and install OpenSSL.

Step 2: Open terminal or command prompt and go to the directory where the .pem and .cer files are stored.

>openssl pkcs8 -inform DER -nocrypt -in key.pk8 -out key.pem
> openssl pkcs12 -export -in certificate.pem -inkey key.pem -out platform.p12 -password pass:yourandroidpassword -name yourkey
> keytool -importkeystore -deststorepass yourpassword -destkeystore .keystore -srckeystore platform.p12 -srcstoretype PKCS12 -srcstorepass yourandroidpassword
> keytool -list -v -keystore .keystore

Make sure you change the password to your own password.. And backup the old key and certificate to a safe location. You cannot upload the same apps if you lose the key and certificate password on Google Play.

Step 3: After successful imported, can now use the generated .keystore file in the Android Developer Tools to export the your old android apps.


Step 4: Open Android ADT, open the project files and edit the android manifest version number. Increase your version number to avoid upload failed in Play Store.

Upload failed

You need to use a different version code for your APK because you already have one with version code 2.


Step 5: Goto Android ADT and Click File -> Export. Select Export Android Application.


Step 6: Use existing keystone and browse the generated keystone in the previous step.


Step 7: Enter the password and the key password. (use define password in the previous step) - default is password and android.

Step 8: Finally, upload the latest version of your app APK to play store.