R roncoa Member Licensed User Longtime User Sep 4, 2014 #1 How can I change the ApplicationLabel depending on the language? Hello, thank you.
S socialnetis Active Member Licensed User Longtime User Sep 4, 2014 #2 Do you mean the Activity title? You can detect the Language with this code: Code: Copy Sub Activity_Create(FirstTime As Boolean) Log(GetDefaultLanguage) End Sub Sub GetDefaultLanguage As String Dim r As Reflector r.Target = r.RunStaticMethod("java.util.Locale", "getDefault", Null, Null) Return r.RunMethod("getLanguagee") End Sub You will need the Relfection library. You can detect the language and so put whatever you want in the Label Upvote 0
Do you mean the Activity title? You can detect the Language with this code: Code: Copy Sub Activity_Create(FirstTime As Boolean) Log(GetDefaultLanguage) End Sub Sub GetDefaultLanguage As String Dim r As Reflector r.Target = r.RunStaticMethod("java.util.Locale", "getDefault", Null, Null) Return r.RunMethod("getLanguagee") End Sub You will need the Relfection library. You can detect the language and so put whatever you want in the Label
J James Chamblin Active Member Licensed User Longtime User Sep 5, 2014 #3 Maybe this tutorial will be of use to you. localize-your-app-using-androidresources Upvote 0
R roncoa Member Licensed User Longtime User Sep 7, 2014 #4 No, i want to change the name of app in the launcher according to the language. Upvote 0
udg Expert Licensed User Longtime User Sep 7, 2014 #5 Did you read my post in the Italian forum? Anyway, check this response from Erel and then follow the link in the post below it udg Upvote 0
Did you read my post in the Italian forum? Anyway, check this response from Erel and then follow the link in the post below it udg
A amertek New Member Licensed User Longtime User Apr 28, 2015 #6 Activity.Title="New Label Activity" Upvote 0