A month ago I started to learn the basics of Android Studio, and I am making an app at the moment. The original language of the app English, but I also wanted it to be in Dutch. I know how to translate the strings.xml file, but I have a hard time translating the words that are in Java. I tried using all the things listed on here, or anywhere on google, but either my app crashes, or in stead of even the English word, there appears a number. So I am wondering, how can I translate the words (one, two and three) that are in my app, (maybe by using strings.xml?)x
public class view_favourite extends Fragment {
public view_favourite() {
// Required empty public constructor
}
SQLiteDatabase db;
int [] fav_array= new int[60];
int updated=0;
private static final int START_LEVEL = 1;
private int mLevel;
private Button mNextLevelButton;
private TextView mLevelTextView;
final String[] numberNames = {
"First","Second","Third"
} ;
If I needed to upload more, sorry, I do not know how this all works and I have a lot to learn. (I know favourite is spelled wrong :))