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.
Experienced Developer
Experienced Developer
Posts: 58
Joined: Fri Nov 20, 2009 7:49 am
Location: India


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.
startActivityForResult waits for callbacks when the started activity decided to finish

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


Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests