Android.Content.ComponentName.UnflattenFromString Method
Recover a ComponentName from a String that was previously created with ComponentName.FlattenToString.

Syntax

[Android.Runtime.Register("unflattenFromString", "(Ljava/lang/String;)Landroid/content/ComponentName;", "")]
public static ComponentName UnflattenFromString (string str)

See Also

ComponentName.FlattenToString

Parameters

str
The String that was returned by flattenToString().

Returns

Documentation for this section has not yet been entered.

Remarks

Recover a ComponentName from a String that was previously created with ComponentName.FlattenToString. It splits the string at the first '/', taking the part before as the package name and the part after as the class name. As a special convenience (to use, for example, when parsing component names on the command line), if the '/' is immediately followed by a '.' then the final class name will be the concatenation of the package name with the string following the '/'. Thus "com.foo/.Blah" becomes package="com.foo" class="com.foo.Blah".

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1