addFile(File file, String archivePath) Adds a file to the archive at a given path
Method Detail
public void addFile(File file, String archivePath)
Adds a file to the archive at a given path
throws:
com.android.builder.packaging.PackagerException if an error occurred
throws:
com.android.builder.packaging.SealedPackageException if the archive is already sealed.
throws:
com.android.builder.packaging.DuplicateFileException if a file conflicts with another already added to the APK
at the same location inside the APK archive.
Parameters:
file - the file to add
archivePath - the path of the file inside the APK archive.