AppIdentifier
Stay organized with collections
Save and categorize content based on your preferences.
This class is deprecated.
This class is no longer used.
An identifier for an application; the value of the identifier should be the package name
for an Android application to be installed or launched to discover and communicate with the
advertised service (e.g. com.example.myapp). Google applications may use this data to prompt
the user to install the application.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Constructors
public AppIdentifier (String
identifier)
Parameters
identifier |
The Android package name of an Android application to be installed or launched
to discover and communicate with the advertised service (e.g.
com.example.myapp). |
Public Methods
public String getIdentifier ()
Retrieves the identifier string for this application (e.g. com.example.mygame).
public void writeToParcel (Parcel out, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppIdentifier\u003c/code\u003e is deprecated and no longer used.\u003c/p\u003e\n"],["\u003cp\u003eIt was previously used to identify an application using its package name.\u003c/p\u003e\n"],["\u003cp\u003eGoogle applications could use this identifier to prompt users to install the application.\u003c/p\u003e\n"],["\u003cp\u003eAlthough deprecated, it still provides methods to get the identifier string and write its data to a parcel.\u003c/p\u003e\n"]]],["`AppIdentifier`, now deprecated, served as an application identifier using the Android package name. It implemented `Parcelable`, enabling it to be passed within `Parcel` objects. Key actions included constructing with a package name identifier, retrieving the identifier string via `getIdentifier()`, and writing the object to a `Parcel` using `writeToParcel()`. The class included a `CREATOR` field for creating `AppIdentifier` objects from a `Parcel`. This class is no longer in use.\n"],null,[]]