There is an undocumented android:enabled attribute in <uses-library> . However, Dianne Hackborn mentioned this in the discussion, saying that we use it, so I hope this is a documentation error and that it is really supported.
Having android:enabled="false" , then using reflection to see if MapActivity , you should give you what you need, AFAIK.
source share