


Of course to make such an amazing Valentine’s app we could just modify a content of strings.xml file, but let’s assume that firstly we want to show I’m the best and later change it to a new string. But imagine that we would like to change this text to I love you. We finished previous lesson displaying I’m the best from strings.xml file. Now we focus only on scenario 1, leaving 2 & 3 for future lessons.
#How to permenantely change text encoding code
So in Java code we would use it too, but instead of attributes we will modify it by methods.
#How to permenantely change text encoding android
TextView is also Android class for displaying text. In the lesson 1.1 we were using TextView tag.

We’re going to use concepts like classes, methods and variables explained there. If you are new to Java read a few lessons called Java basics that we have already published ( they are a part of Lesson 0 set). This is recommended approach, but if we want to modify that text we have to use Java. We have already presented some text on the screen using layout XML file. By Android Teacher on June 29th, 2013 in Getting started, Java, TextView tags: activity_main.xml, adding id,, android:id, append, findViewById, getResources, getString, getText, id, import, looking for id, onCreate, setText, string, strings.xml, TextView, toString
