Back to project page androidui.
The source code is released under:
MIT License
If you think the Android project androidui listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package course.examples.quoteviewer; //from w w w . j a v a 2s . c om import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.widget.ArrayAdapter; public class QuoteListActivity extends ListActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Get the Intent that started this Activity Intent intent = getIntent(); // Retrieve the Extra stored under the name TitlesListActivity.INDEX String quote = intent.getStringExtra(TitlesListActivity.INDEX); if (null != quote) { // Set the list adapter for the ListView // Discussed in more detail in the user interface classes lesson setListAdapter(new ArrayAdapter<String>(QuoteListActivity.this, R.layout.list_text_item_layout, new String[] { quote })); } } }