activity switching

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

activity switching

Postby chouman » Mon Sep 22, 2008 8:35 am

Got a simple question but somehow can't find the answer...

Anyone know how to switch from a child activity back to the parent activity without ending the child activity? Like i want to switch back to the parent activity and leave the child activity running when the return button is pressed.
chouman
Developer
Developer
 
Posts: 27
Joined: Thu Jan 03, 2008 2:59 pm

Top

Postby cgreen » Mon Sep 22, 2008 9:48 am

i'm not sure, but this sounds like, you want to start and stop a service. afaik activities are only active as long as they are running in the front
localhost is the android emulator
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby chouman » Mon Sep 22, 2008 5:56 pm

but from what i know, service is used only for background process (doesn't need user inter action). The child activity that I have will have user interaction and it's just that the user can then go back to the parent activity while putting the child in the back and then maybe switch between the two.
chouman
Developer
Developer
 
Posts: 27
Joined: Thu Jan 03, 2008 2:59 pm

Postby chouman » Mon Sep 22, 2008 9:03 pm

i guess maybe an easier question would be how would i put the child activity into the background and then how to call on the child activity again? once the child activity is in the background do i just use the startActivity(new intent()) to start my child activity back up?
chouman
Developer
Developer
 
Posts: 27
Joined: Thu Jan 03, 2008 2:59 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests