I develop an Android app that has a mobile and a wearable part. I put some common things in a shared library, like a fragment that is used on the mobile device and also the wearable. Unfortunately the fragment is extends android.support.v4.app.Fragment, but android.support.wearable.view.FragmentGridPagerAdapter can't provide such support fragments via getFragment (only android.app.Fragment is supported).
Is there a FragmentGridPagerAdapter that supports android.support.v4.app.Fragment? Or any other suggestions how to solve this (without switching everything to android.app.Fragment)? I also thought about wrapping a android.support.v4.app.Fragment inside android.app.Fragment (using a XML layout) and that with FragmentGridPagerAdapter, but this throws a runtime error. Best regards, Kai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9f25feb1-6321-46e1-95f2-3b03be569fb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

