I\'ve updated the SDK to the latest version (API 23) and the onAttach(Activity) method for fragment is deprecated. So instead of using that method, now I\'m usi
pleas post about this BUG here
ISSUE OPPENED ON GOOGLE AOSP PROJECT HOMESITE:
https://code.google.com/p/android/issues/detail?id=185465
ps. this is not your job to search for solution to this problem & to find any kind of workarounds .. but to force google to fix its broken API! to do this u need to complain as i said.
related issue - getContext() from fragment:
https://code.google.com/p/android/issues/detail?id=185848