0

We always create an Intent with context

Intent intent = Intent(context, SomeClass.class)

I can use this(activity) or getActivity(fragment) as context, in some situations I can use getApplicationContext.

My question is what't the difference for Intent under there two circumstances?

BollMose
  • 2,326
  • 4
  • 29
  • 35

1 Answers1

0

getApplicationContext() is giving application context but context is giving current activity context.I hope its help you.

kundan kamal
  • 654
  • 7
  • 16