0

Actually I want to know the work of intent and startActivityForResult.Its little confusion on this topic.

  • refer http://stackoverflow.com/questions/14119992/difference-between-startactivityforresult-and-startactivity – sasikumar Oct 09 '16 at 09:39

1 Answers1

0

Intent is a mechanism for communicating between different components of android (i.e. Activity, Service, BroadcastReceiver, etc.)

Where as startActivity() and startActivityForResult() are used to start another activity.

startActivity()-use to start another activity
startActivityForResult() - use when you are expecting some result from the activity you want to start.

Sanjeet
  • 2,385
  • 1
  • 13
  • 22