hardcode string vs @string in Java code - Android
Tutorial by Er Satya
All > Tech Blogger | Java | Spring Boot | HTML | CSS | MySQL > Java | Spring Boot
1 like
Please login to like this article.
BTW, you don't need to put every text in the strings.XML file; only the ones that might be used in multiple places in the application.
The general rule for placing strings in the strings.xml file are these:
- Will it be used in multiple locations
- Will it be used in multiple languages
- Will it be dynamic or static
More articles from same author:
More articles:
Recent lost & found:
Login for enhanced experience
Create and manage your profile
Refer an author and get bonus Learn more
Publish any lost and found belongings
Connect with the authors & add your review comments
Join us for Free to advertise for your business or Contact-us for more details
Join us for Free to publish your own blogs, articles or tutorials and get your Benefits
Discover your area of interest
Advertisement
Art & entertainment
Astrology & spirituality
Cooking
Culture
Current affairs
Education
Fashion
History
Hotel management
Industry
Medical & fitness
Motivational
Politics
Real life stories
Sports
Story & poetry
Technology
Top in search
Tourism
More recent categories
Kronenbourg Online Beer Shopping(Public)
By: CEMAC
Heineken Buy Heineken Online(Public)
By: CEMAC
RedBull EnergyDrink(Public)
By: CEMAC
A4 Double High-Quality Printing Paper(Public)
By: CEMAC
Buy Sunflower Oil Online(Public)
By: CEMAC
Refined Sunflower Edible Oil(Public)
By: CEMAC
Wood Pellets for Sale(Public)
By: CEMAC
Refined Sunflower Oil Price(Public)
By: CEMAC
Buy Wholesale Sunflower Oil(Public)
By: CEMAC
Buy ENplus A1 Wood pellets(Public)
By: CEMAC