The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
tast
Posted by: tast | May 4, 2011 @ 5:16pm
Java Code
[
Download
]
package com.android.contactlist; import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class showfriends extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // Create an array of Strings, that will be put to our ListActivity String[] mStrings = new String[]{"Thomas Malmberg", "Alexandra T�rn", "Nicklas Storm", "Anna �ver�s", "Ajden Nedzipovski"}; // Create an ArrayAdapter, that will actually make the Strings above appear in the ListView this.setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mStrings)); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
5.73 / 8
117 Votes
http://codebin.yi.org/1253
page generated in 0.00 seconds