I have developed a habit of taking a shortcut in programming, and I am wondering what the consequences are:
In MainActivity() declare:
public static Context xt;
In the MainActivity constructor of MainActivity
xt = this;
In my Renderer constructor:
readTextFile(MainActivity.xt, R.raw.vertexcode);
and the function readTextFile uses context to open resources
public static String readTextFileFromRawResource(final Context context,
final int resourceId)
{
final InputStream inputStream = context.getResources().openRawResource(
resourceId);
. . .