PreferredActivitypublic class PreferredActivity extends android.content.IntentFilter implements PreferredComponent.Callbacks
Fields Summary |
---|
private static final String | TAG | private static final boolean | DEBUG_FILTERS | final PreferredComponent | mPref |
Methods Summary |
---|
public boolean | onReadTag(java.lang.String tagName, org.xmlpull.v1.XmlPullParser parser)
if (tagName.equals("filter")) {
if (DEBUG_FILTERS) {
Log.i(TAG, "Starting to parse filter...");
}
readFromXml(parser);
if (DEBUG_FILTERS) {
Log.i(TAG, "Finished filter: depth=" + parser.getDepth() + " tag="
+ parser.getName());
}
} else {
PackageManagerService.reportSettingsProblem(Log.WARN,
"Unknown element under <preferred-activities>: " + parser.getName());
XmlUtils.skipCurrentTag(parser);
}
return true;
| public java.lang.String | toString()
return "PreferredActivity{0x" + Integer.toHexString(System.identityHashCode(this))
+ " " + mPref.mComponent.flattenToShortString() + "}";
| public void | writeToXml(org.xmlpull.v1.XmlSerializer serializer, boolean full)
mPref.writeToXml(serializer, full);
serializer.startTag(null, "filter");
super.writeToXml(serializer);
serializer.endTag(null, "filter");
|
|