1

Android Intent Context Confusing

view story
linux-howto

http://stackoverflow.com – Can somebody explain this to me please : Intent intent = new Intent(Context, AlarmReceiver.class); I never understood and I seriously think I never will if somebody doesn't try to explain this to me in depth. This whole context thing is so confusing to me. Sometimes it works like this : Intent intent = new Intent(getBaseContext(), AlarmReceiver.class); Sometimes it wont work like that but it accepts only : Intent intent = new Intent(context, AlarmReceiver.class); Sometimes its : Intent intent = new Intent(this, AlarmReceiver.class); etc. etc. and many other. I understand basic (HowTos)