Android : How to make an international toast (in different languages)?

Posted by Lol Pallau on Stack Overflow See other posts from Stack Overflow or by Lol Pallau
Published on 2012-09-22T09:30:30Z Indexed on 2012/09/22 9:37 UTC
Read the original article Hit count: 260

Filed under:
|

I've a simple question : I would like to make an international toast depending on the user's language.

Toast.makeText(this,"hello", Toast.LENGTH_SHORT).show();

I've created the folders "values" and "values-fr" with the file string.xml wherein there is respectively :

<string name="hello">Hello World</string>

and

<string name="hello">Bonjour</string>

Now how to add it in my toast ? Thank you in advance ;)

© Stack Overflow or respective owner

Related posts about android

Related posts about toast