Android
android.content.pm
public class

android.content.pm.PermissionGroupInfo

java.lang.Object
android.content.pm.PackageItemInfo
android.content.pm.PermissionGroupInfo Parcelable

Information you can retrieve about a particular security permission group known to the system. This corresponds to information collected from the AndroidManifest.xml's <permission-group> tags.

Summary

Constants

      Value  
Creator<PermissionGroupInfo CREATOR       
Constants inherited from interface android.os.Parcelable

Fields

public      int  descriptionRes  A string resource identifier (in the package's resources) of this permission's description. 
public      CharSequence  nonLocalizedDescription  The description string provided in the AndroidManifest file, if any. 
Fields inherited from class android.content.pm.PackageItemInfo

Public Constructors

            PermissionGroupInfo()
            PermissionGroupInfo(PermissionGroupInfo orig)

Public Methods

          int  describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
          CharSequence  loadDescription(PackageManager pm)
Retrieve the textual description of this permission.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
          void  writeToParcel(Parcel dest, int parcelableFlags)
Methods inherited from class android.content.pm.PackageItemInfo
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator<PermissionGroupInfo> CREATOR

Fields

public int descriptionRes

A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.

public CharSequence nonLocalizedDescription

The description string provided in the AndroidManifest file, if any. You probably don't want to use this, since it will be null if the description is in a resource. You probably want loadDescription(PackageManager) instead.

Public Constructors

public PermissionGroupInfo()

public PermissionGroupInfo(PermissionGroupInfo orig)

Public Methods

public int describeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

public CharSequence loadDescription(PackageManager pm)

Retrieve the textual description of this permission. This will call back on the given PackageManager to load the description from the application.

Parameters

pm A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item.

Returns

  • Returns a CharSequence containing the permission's description. If there is no description, null is returned.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.

public void writeToParcel(Parcel dest, int parcelableFlags)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48