muratalan / android-section-list

Automatically exported from code.google.com/p/android-section-list
Other
0 stars 0 forks source link

i want list view click intent to another activity #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

        nama = new String[] { "2 Potong Ayam", "Wing Bucket" };

@Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3){

                     Intent i = null;
                if (equals("2 Potong ayam")){
                 i = new Intent(Kfc.this, Ayam.class);
                } else if (equals("Wing Bucket")){
                    i = new Intent(Kfc.this, Bucket.class);
                } startActivity(i);
            }
        });

when i clicked listview,, always force close.

Original issue reported on code.google.com by monika_j...@yahoo.co.id on 13 Feb 2014 at 2:57