AndroidManifestWriter

public class AndroidManifestWriter
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.xml.AndroidManifestWriter


Helper class for modifying an AndroidManifest.

copied from /platform/sdk/.../adt-tests/com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper. TODO: Find a way of sharing this code with adt-tests

Summary

Public methods

static AndroidManifestWriter parse(String osManifestFilePath)

Parses the manifest file, and collects data.

boolean setMinSdkVersion(String minSdkVersion)

Sets the minimum SDK version for this manifest.

Public methods

parse

AndroidManifestWriter parse (String osManifestFilePath)

Parses the manifest file, and collects data.

Parameters
osManifestFilePath String: The OS path of the manifest file to parse.

Returns
AndroidManifestWriter an AndroidManifestWriter or null if parsing failed

setMinSdkVersion

boolean setMinSdkVersion (String minSdkVersion)

Sets the minimum SDK version for this manifest.

Parameters
minSdkVersion String: - the minimim sdk version to use

Returns
boolean true on success, false otherwise