I am getting this exception while I am trying to call an activity from another one. The complete exception is
android.content.ActivityNotFoundExcept
I was using getActivityContext()
(instead of Activity.this
) for the menu code to save some work, and copy-and-paste it to each activity without editing each time.
I replaced them with Activity.this
, and the issue is gone.
I have a feeling a smarter Android guy could work-around not having to do that. Would like to hear what it would be.