CopyPastor

Detecting plagiarism made easy.

Score: 0.8184322752058506; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-02-01
by Farid Haq

Original Post

Original - Posted on 2018-02-21
by Ulysses Caetano Braga



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Android has support to Different Languages and Cultures according to the device's language setup. You can achieve that working with different strings resource for which language that you desire to support.
Please refer this link https://developer.android.com/training/basics/supporting-devices/languages
In your project, right-click res/values/ and select New -> Values resource file. Enter "strings" for the file name and leave the source option set to main. In the Available qualifiers and click ">>" button to move "Locale"to the Chosen qualifiers section. Select the language that you wish to support and select the region (default is: Any region) and left-click "Ok". Android studio will automatically generate a new resource file also called "strings.xml".
Why did I mention that? Android at run time looks for a default string resource. What might be happening is that you're not using a default string resource, instead you're using a 'string-pt' resource, this would be a problem if you don't have resource string file for Spanish or other language.
[![enter image description here][1]][1]

[1]: https://i.stack.imgur.com/8QsVZ.png
Android has support to [Different Languages and Cultures][1]according to the device's language setup. You can achieve that working with different strings resource for which language that you desire to support.
In your project, right-click res/values/ and select New -> Values resource file. Enter "strings" for the file name and leave the source option set to main. In the Available qualifiers and click ">>" button to move "Locale"to the Chosen qualifiers section. Select the language that you wish to support and select the region (default is: Any region) and left-click "Ok". Android studio will automatically generate a new resource file also called "strings.xml".
Why did I mention that? Android at run time looks for a default string resource. What might be happening is that you're not using a default string resource, instead you're using a 'string-pt' resource, this would be a problem if you don't have resource string file for Spanish or other language.

[1]: https://developer.android.com/training/basics/supporting-devices/languages.html

        
Present in both answers; Present only in the new answer; Present only in the old answer;