How to handle onContextItemSelected in a multi fragment activity?
问题 I'm currently trying to adapt my application to use the "Compatibility Libraries for Android v4" to provide the benefits of the usage of fragments even to Android 1.6 users. The implementation of a context menu seems to be tricky: The main activity of the application is extending the FragmentActivity class. The fragments are all based on one class which extends the Fragment class. The fragment class is calling registerForContextMenu() in its onCreateView() method and overrides the methods