Search:

Type: Posts; User: CodePrince

Search: Search took 0.18 seconds.

  1. Re: Java: Using string resource in external class

    I am using Android Studio for Java development. The strings.xml file is in res folder.

    The posted code compiles without errors but the app crashes when reaching the said function. The getString...
  2. Re: Java: Using string resource in external class

    This is my "strings.xml" file:

    <code>
    <resources xmlns: xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="app_name">Java Doughnut Corner</string>
    <string name="name">Name: <xliff:g...
  3. Java: Using string resource in external class

    Hi everyone, am new to Java. During development I needed to use string resources. I can fetch them from strings.xml for the layout xml file and for the MainActivity.java file (using...
Results 1 to 3 of 3