Is it possible to:
- render arbitrary OpenGL code on an application’s widget view in Android, and
- drive an Android widget with native C++ code (instead of Java)?
Motivation: I have access to an Android native OpenGL application that I’d like to modify to work as a widget. Before I undertake this endeavor, I hoped to hear directly if it was absolutely possible (maybe even with a pointer to a code sample), or absolutely impossible.
No. See here:
For OpenGL you need
TextureVieworSurfaceViewand neither are supported byRemoteViews.