Questions tagged [string.xml]

39 questions
15
votes
4 answers

How do I open a browser on clicking a text link in TextView

I made an activity that has some text. I made a link clickable in TextView but and it is working fine (link is visible with underline). But when I click the link it says Unfortunately app has stopped responding Here is my code. The TextView…
stodgy.nerd
  • 601
  • 4
  • 9
  • 17
5
votes
1 answer

Change the default string xml file in android

I started working in my application using English strings for my string resources file, but now I created an Arabic string file , and i want to use this string resources as the default language for my app. is it possible to change the default…
3
votes
1 answer

Flutter: Can't Find String.xml file

I want to use flutter_share_me 0.9.1 Plug-In. but I can't find String.xml file in my project Folder .
Abir Ahsan
  • 2,649
  • 29
  • 51
3
votes
1 answer

Get a string resource from "values" folder in Android

I have a default string that needs to be used on the app, no matter the language. Thinking that it should be independent from the app language I did not put the string inside any of the string.xml files for the different languages. Instead I created…
codeKiller
  • 5,493
  • 17
  • 60
  • 115
3
votes
5 answers

How can I find all fake or useless string values in string.xml file?

I have a big and messy string.xml file with 3000 records, which most of the values are useless and never used inside code. I want to find and omit those useless records automatically. Is there a way to find useless records inside string.xml file?
Davoud
  • 2,576
  • 1
  • 32
  • 53
2
votes
0 answers

how to get variable into string (string.xml using kotlin

Hi i'm new to programming so ... I made a simple app and in MainActivity.kt I just have one textview that point to a string.
Herman
  • 21
  • 2
2
votes
1 answer

How to use sqlite as string resource instead of strings.xml for language?

I have two API. One is to send me a list of languages and the second is for getting a list of key/value strings. I want to use this key/value as a string resource in the android app, instead of a string.xml file. For this condition I have decided…
2
votes
1 answer

How many times android, read to string.xml when a string is obtained?

If I have this variable activity.getString(R.string.urlService); in my strings.xml in android, and I use this variable 3 times in my code. How many times android read string.xml file? When the android application start the content is upload to…
livs
  • 105
  • 1
  • 9
2
votes
1 answer

Why does xliff in android displays format specifier in Edittext hint?

I am working on localization if an app in android studio. While using xliff in the below code, I see the "%s" display in my screen. Name %s I know that the %s is…
2
votes
2 answers

How can I load the strings.xml dynamically? Can I put the file in a server?

Why i ask this is because the size of my APK is huge. I wanna make it smaller. There're lots of strings in strings.xml. Our product manager force us to support all languages on the earth. I'd like to know, can I just put some languages of…
kyoraku
  • 57
  • 7
1
vote
0 answers

secure string.xml value when reverse engineer happen

How can i hide o encrypt the values of my string.xml file when someone try to reverse engineer? So that i can secure my apk. I already implemented proguard and minify in my build.gradle. Please help.
1
vote
1 answer

Update Locale not changing the Locale for Android version lower than Build.VERSION_CODES.N (API 24)

for a few days I have been struggling with changing the language in the application, it seems like it's still good but if the API is below 24 (VERSION_CODES.N) it doesn't want to update Locale. I found the solution here:…
Vitalie Andries
  • 125
  • 1
  • 8
1
vote
0 answers

Properly insert text into Android Application

I recently started an Android project as some sort of tutorial, but rather than the same boring List/Web View most android offline tutorial app make use of, I decided to make a it a bit better using Recycler View and card View. The main problem so…
Mab
  • 412
  • 3
  • 12
1
vote
3 answers

Why does TextView cannot display formatted text referred from android resources?

I am trying to display a text that i set in TextView. I have already assigned a string in strings.xml with the name operator_mixed Strings.xml %d %s %d %s %d And in my initialize.java file i tried to refer…
Ramu
  • 147
  • 1
  • 13
1
vote
2 answers

How to format and style (Bold, TextSize) string resource in Android

Above is the image of what I want to achieve using String.xml There are three things '76' & '20' will be replaced dynamically using String.format '20' should be bold '20' should be bigger in size I have tried all the solutions using Html.fromHtml…
Dhaval
  • 2,724
  • 2
  • 24
  • 33
1
2 3