In VideoPlack sample we are loading textures in onCreate method with following method before updateApplicationStatus(APPSTATUS_INIT_APP);
private void loadTextures()
{
mTextures.add(Texture.loadTextureFromApk("VuforiaSizzleReel_1.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("VuforiaSizzleReel_2.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("play.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("busy.png",
getAssets()));
mTextures.add(Texture.loadTextureFromApk("error.png",
getAssets()));
}
What if I want to load textures after downloading them from internet? What should I do? If I simply add texture to mTextures array then it is not loaded since we have to load textures in cpp file as well.
Sounds like you are trying to load some Dataset from an XML / DAT database, but perhaps those files are not present.