[android-developers] Re: Compilation error on my if else statement

2011-10-07 Thread Studio LFP
You are really going at that the hard way. When using a ListView, checking for a string on a view is really inefficient. You could use the "position" or the "id" as a trigger point and use a case statement to make it faster and easier. list.setOnItemClickListener(new OnItemClickListener() { @O

[android-developers] Re: Compilation error on my if else statement

2011-10-09 Thread scame
Wow. http://download.oracle.com/javase/tutorial/java/nutsandbolts/if.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Compilation error on my if else statement

2011-10-12 Thread dhwanipatel
Remove ";" located in between each if condition completion bracket and start of curly bracket. e.g. if (item.equalsIgnoreCase("I. The Global Business Environment")) { //go to chapter 1 startActivity(new Intent(ChaptersActivity.this, Chapter1Activity.class));