Dalvik.SystemInterop.DexFile.LoadDex Method
Open a DEX file, specifying the file in which the optimized DEX data should be written.

Syntax

[Android.Runtime.Register("loadDex", "(Ljava/lang/String;Ljava/lang/String;I)Ldalvik/system/DexFile;", "")]
public static DexFile LoadDex (string sourcePathName, string outputPathName, int flags)

Parameters

sourcePathName
Jar or APK file with "classes.dex". (May expand this to include "raw DEX" in the future.)
outputPathName
File that will hold the optimized form of the DEX data.
flags
Enable optional features. (Currently none defined.)

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionIf unable to open the source or output file.

Remarks

Open a DEX file, specifying the file in which the optimized DEX data should be written. If the optimized form exists and appears to be current, it will be used; if not, the VM will attempt to regenerate it. This is intended for use by applications that wish to download and execute DEX files outside the usual application installation mechanism. This function should not be called directly by an application; instead, use a class loader such as dalvik.system.DexClassLoader.

[Android Documentation]

Requirements

Namespace: Dalvik.SystemInterop
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3