Skip to content

Instantly share code, notes, and snippets.

@Fanadezz Fanadezz/java.java
Created Aug 3, 2018

Embed
What would you like to do?
getResourses
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
You can’t perform that action at this time.