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
  • 3,002
  • 4
  • 32
  • 41

1 Answers1

0

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

kundan kamal
  • 674
  • 7
  • 16