ÇöÀç ¾îÇÿ¡¼´Â ¸®½ºÆ®ºä¿¡¼ À̸§À» ¼±ÅÃÇϸé ÇØ´ç »çÀÌÆ®·Î µé¾î°¡°Ô Çϴ°ÍÀÌ ¸ñÀûÀÔ´Ï´Ù.
¸®½ºÆ®ºä¿¡ urlsÀÇ ÁÖ¼Ò ´ë½Å¿¡ À̸§À» ³Ö°í À̸§À» Ŭ¸¯ÇÏ¸é °¢°¢ÀÇ »çÀÌÆ®·Î °¡°Ô ¸¸µé°í ½Í½À´Ï´Ù.
¾î¶»°Ô ÇؾßÇÏ´ÂÁö ¾Ë·ÁÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
private String[] urls = { "http://www.naver.com", "http://www.naver.com" };
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.set_space);
// TODO Auto-generated method stub
ListView shownn = (ListView) findViewById(R.id.set_spec);
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(
getApplicationContext(), android.R.layout.simple_list_item_1,
urls);
shownn.setAdapter(arrayAdapter);
shownn.setOnItemClickListener(this);
};
public void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) {
Intent mintent = new Intent(Intent.ACTION_VIEW, Uri.parse(urls[pos]));
startActivity(mintent);;
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)