to top
public class

AndroidManifestWriter

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static 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

public 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