screen moving to third screen instead of second screen

Put your problem here if it does not fit any of the other categories.

screen moving to third screen instead of second screen

Postby gopal » Tue Jun 10, 2008 1:50 pm

Hi,

As i press an item in the first screen its moving to third screen fastly by means of a centre pres key.Its going to the second screen,but is not staying in the second screen.Its moving fastly to the third screen without staying in the second screen.Actually,only when i pres an item in the second screen it should move to the third screen.Can anybody help me?
gopal.
gopal
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 20, 2008 2:40 pm
Location: chennai

Top

Postby nisha » Thu Jun 19, 2008 6:41 am

Hi,


Can you tell me what you mean by item?... Is it list? or button?

regards,
nisha
nisha
Experienced Developer
Experienced Developer
 
Posts: 80
Joined: Fri Feb 15, 2008 7:52 am

Hi

Postby gopal » Thu Jun 19, 2008 7:30 am

Hi,

Inside a list,i have an item.As i press the item,it should move to next screen.

Regards,
Gopal
gopal.
gopal
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 20, 2008 2:40 pm
Location: chennai

Postby nisha » Thu Jun 19, 2008 7:35 am

Hi,

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
if(position == 0){
Intent intent = new Intent();
intent.setClass(this, SettingDetails.class);
startActivity(intent);
}
else if(position == 1){
Intent intent = new Intent();
intent.setClass(this, SettingDetails.class);
startActivity(intent);
}
}

you should perform operations based on the position. On click of that list item Intent you can use...

nisha
nisha
Experienced Developer
Experienced Developer
 
Posts: 80
Joined: Fri Feb 15, 2008 7:52 am

Hi Nisha,

Postby gopal » Thu Jun 19, 2008 8:09 am

Hi Nisha,

Thank u ...very much.....:)
gopal.
gopal
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 20, 2008 2:40 pm
Location: chennai

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 25 guests