@Override
    public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.about);
       
   ArrayList<String> arGeneral = new ArrayList<String>();
   arGeneral.add("경기도");
   arGeneral.add("강원도");
   arGeneral.add("충청도");
   arGeneral.add("경상도");
   arGeneral.add("전라도");
   arGeneral.add("제주도");  
   
   ArrayAdapter<String> Adapter;
   Adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, arGeneral);

  

   ListView list = (ListView)findViewById(R.id.list);
   list.setAdapter(Adapter);      

       }

 

    public void onListItemClick(ListView list, View view, int position, long id) {
     switch(position){
     case 0:
      Intent a= new Intent(this,kg.class);
                  startActivity(a);
                  break;
     case 1:
      Intent b= new Intent(this,kx.class);
                   startActivity(b);
                   break;

 

위와 같이 리스트별로 다른 인텐트로 접속하려고 합니다.

문제가 무엇인지요 ㅠㅠ

답변 부탁드립니다.

 

안드로 초보가...