startactivityforresult and startactivity

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

startactivityforresult and startactivity

Postby nbagade » Fri Jul 02, 2010 12:18 pm

Hi all,

Can any one tell me what is the difference between startActivityForResult() and startActivity()


Thanks In advance.
nbagade
Experienced Developer
Experienced Developer
 
Posts: 58
Joined: Fri Nov 20, 2009 7:49 am
Location: India

Top

Re: startactivityforresult and startactivity

Postby blundell » Fri Jul 02, 2010 12:56 pm

startActivity will start a new activity and not care when where and how that activity finishes.
evidently
startActivityForResult waits for callbacks when the started activity decided to finish

CLICKY > startActivityForResult < CLICKY
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: Google [Bot] and 5 guests