Android: Asset manager just expects the file name and not the full path.

This commit is contained in:
Rom Walton 2013-02-14 13:38:45 -05:00 committed by Oliver Bock
parent f8a25cf2b2
commit 549205bdd2
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ public class Monitor extends Service {
}
//copy client from assets to clientPath
InputStream asset = getApplicationContext().getAssets().open(clientPath + file);
InputStream asset = getApplicationContext().getAssets().open(file);
OutputStream targetData = new FileOutputStream(target);
b = new byte [1024];
while((read = asset.read(b)) != -1){