Hi!
This is the expected behavior. On a desktop environment, you can only call the methods that are available in the desktop profiles. However, some methods are both in the desktop profiles and in the embedded profiles. Of course, when a method is only available in embedded profiles, you cannot use it in desktop profiles.
If you want to use the same source code on Android and in a desktop environment, rather call GLContext.getCurrentGL().getGL2ES1().