Condividi tramite


PackageInstaller.Session.OpenRead(String) Method

Definition

Open a stream to read an APK file from the session.

[Android.Runtime.Register("openRead", "(Ljava/lang/String;)Ljava/io/InputStream;", "GetOpenRead_Ljava_lang_String_Handler")]
public virtual System.IO.Stream OpenRead (string name);
[<Android.Runtime.Register("openRead", "(Ljava/lang/String;)Ljava/io/InputStream;", "GetOpenRead_Ljava_lang_String_Handler")>]
abstract member OpenRead : string -> System.IO.Stream
override this.OpenRead : string -> System.IO.Stream

Parameters

name
String

Returns

Attributes

Remarks

Open a stream to read an APK file from the session.

This is only valid for names which have been previously written through #openWrite(String, long, long) as part of this session. For example, this stream may be used to calculate a MessageDigest of a written APK before committing.

Java documentation for android.content.pm.PackageInstaller.Session.openRead(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to