Created
August 3, 2018 09:15
-
-
Save Tonnie-Dev/999e3f0a2963aa02109f3591a907f1e2 to your computer and use it in GitHub Desktop.
getResourses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
/*this references to the activity's class*/ | |
String [] animal = this.getResources().getStringArray(R.array.animals); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment