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
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
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));
3 matches
Mail list logo