• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/7

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

7 Cards in this Set

  • Front
  • Back
How to convert a arrayList to a string array ?
String[]titles_str = titles.toArray(new String[titles.toArray().length]);
How to assign a string array "titles_str" to a list adapter?
this.setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, titles_str));
How to pass a string object in the intent in the onListItemClick() method?
1) Intent intent = new Intent(v.getContext(), DetailView.class);
2) intent.putExtra(LINK, links.get(position));
3) startActivity(intent);
How to get the value of a String key AppMain.LINK from the intent passed in from another activity?
url = getIntent().getStringExtra(AppMain.LINK);
url = url.replaceAll("\\s+", ""); // remove all the white space
How to get the value of a int key AppMain.PRICEfrom the intent passed in from another activity?
int price = getIntent().getIntExtra(AppMain.PRICE,0);
How to set a click event listener on a button?
button.setOnClickListener(new View.OnClickListener() {}
How to open a url in a browser when a button is clicked?
in the onClick()
{
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(browserIntent);
}