I am using this code to try to access my assets:
try
{
Resources res = context.getResources();
AssetManager assMan = res.getAssets();
String assets[] = assMan.list("Models");
InputStream is = assMan.open("Models/Ship.Obj");
ObjLoader loader = new ObjLoader(is);
mVertexBuffer = loader.getVerts();
mIndexBuffer = loader.getIndex();
}
catch(IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}When I look at the value of assets it contains "Ship.obj" (see attached image) but when I try to open the file it throws the exception. Does anyone have any experience with this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---
<<inline: Ship.png>>

