What does `act` and `cat` mean in ActivityManager in Android?
When I capture adb logcat in an Android application. I see below log:
ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
I don't understand what act and cat mean in the above log. Does them relate to ActivityManager? I couldn't find any clue in the doc.
add a comment |
When I capture adb logcat in an Android application. I see below log:
ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
I don't understand what act and cat mean in the above log. Does them relate to ActivityManager? I couldn't find any clue in the doc.
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24
add a comment |
When I capture adb logcat in an Android application. I see below log:
ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
I don't understand what act and cat mean in the above log. Does them relate to ActivityManager? I couldn't find any clue in the doc.
When I capture adb logcat in an Android application. I see below log:
ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
I don't understand what act and cat mean in the above log. Does them relate to ActivityManager? I couldn't find any clue in the doc.
asked Nov 13 '18 at 2:23
Zhao YiZhao Yi
5,4011553125
5,4011553125
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24
add a comment |
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24
add a comment |
2 Answers
2
active
oldest
votes
act means action, and cat means category.
Here's a snippet of what Intent.toString does:
public void toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras,
boolean clip) {
boolean first = true;
if (mAction != null)
b.append("act=").append(mAction); // Action
first = false;
if (mCategories != null)
if (!first)
b.append(' ');
first = false;
b.append("cat=["); // Categories
for (int i=0; i<mCategories.size(); i++)
if (i > 0) b.append(',');
b.append(mCategories.valueAt(i));
b.append("]");
// ...
The reason why you're seeing this in the log is very likely because of the intent has been dispatched by one of the apps or services, so the system can decide which apps to handle the intent with specific action and categories.
Does the log mean open aVIEWinsideBROWSER?
– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
add a comment |
act stands for Action and cat stands for Category
More details are here
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272861%2fwhat-does-act-and-cat-mean-in-activitymanager-in-android%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
act means action, and cat means category.
Here's a snippet of what Intent.toString does:
public void toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras,
boolean clip) {
boolean first = true;
if (mAction != null)
b.append("act=").append(mAction); // Action
first = false;
if (mCategories != null)
if (!first)
b.append(' ');
first = false;
b.append("cat=["); // Categories
for (int i=0; i<mCategories.size(); i++)
if (i > 0) b.append(',');
b.append(mCategories.valueAt(i));
b.append("]");
// ...
The reason why you're seeing this in the log is very likely because of the intent has been dispatched by one of the apps or services, so the system can decide which apps to handle the intent with specific action and categories.
Does the log mean open aVIEWinsideBROWSER?
– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
add a comment |
act means action, and cat means category.
Here's a snippet of what Intent.toString does:
public void toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras,
boolean clip) {
boolean first = true;
if (mAction != null)
b.append("act=").append(mAction); // Action
first = false;
if (mCategories != null)
if (!first)
b.append(' ');
first = false;
b.append("cat=["); // Categories
for (int i=0; i<mCategories.size(); i++)
if (i > 0) b.append(',');
b.append(mCategories.valueAt(i));
b.append("]");
// ...
The reason why you're seeing this in the log is very likely because of the intent has been dispatched by one of the apps or services, so the system can decide which apps to handle the intent with specific action and categories.
Does the log mean open aVIEWinsideBROWSER?
– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
add a comment |
act means action, and cat means category.
Here's a snippet of what Intent.toString does:
public void toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras,
boolean clip) {
boolean first = true;
if (mAction != null)
b.append("act=").append(mAction); // Action
first = false;
if (mCategories != null)
if (!first)
b.append(' ');
first = false;
b.append("cat=["); // Categories
for (int i=0; i<mCategories.size(); i++)
if (i > 0) b.append(',');
b.append(mCategories.valueAt(i));
b.append("]");
// ...
The reason why you're seeing this in the log is very likely because of the intent has been dispatched by one of the apps or services, so the system can decide which apps to handle the intent with specific action and categories.
act means action, and cat means category.
Here's a snippet of what Intent.toString does:
public void toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras,
boolean clip) {
boolean first = true;
if (mAction != null)
b.append("act=").append(mAction); // Action
first = false;
if (mCategories != null)
if (!first)
b.append(' ');
first = false;
b.append("cat=["); // Categories
for (int i=0; i<mCategories.size(); i++)
if (i > 0) b.append(',');
b.append(mCategories.valueAt(i));
b.append("]");
// ...
The reason why you're seeing this in the log is very likely because of the intent has been dispatched by one of the apps or services, so the system can decide which apps to handle the intent with specific action and categories.
edited Nov 13 '18 at 3:12
answered Nov 13 '18 at 2:24
AaronAaron
1,7232212
1,7232212
Does the log mean open aVIEWinsideBROWSER?
– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
add a comment |
Does the log mean open aVIEWinsideBROWSER?
– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
Does the log mean open a
VIEW inside BROWSER?– Zhao Yi
Nov 13 '18 at 2:26
Does the log mean open a
VIEW inside BROWSER?– Zhao Yi
Nov 13 '18 at 2:26
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
It means an intent has been dispatched to view something and has a category of browsable to the system, and whichever of the app can support this intent will handle it.
– Aaron
Nov 13 '18 at 2:28
add a comment |
act stands for Action and cat stands for Category
More details are here
add a comment |
act stands for Action and cat stands for Category
More details are here
add a comment |
act stands for Action and cat stands for Category
More details are here
act stands for Action and cat stands for Category
More details are here
answered Nov 13 '18 at 2:28
Waqar KhanWaqar Khan
254115
254115
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272861%2fwhat-does-act-and-cat-mean-in-activitymanager-in-android%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
act stands for Action and cat stands for Category
– Waqar Khan
Nov 13 '18 at 2:24