What does `act` and `cat` mean in ActivityManager in Android?










0















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.










share|improve this question






















  • act stands for Action and cat stands for Category

    – Waqar Khan
    Nov 13 '18 at 2:24















0















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.










share|improve this question






















  • act stands for Action and cat stands for Category

    – Waqar Khan
    Nov 13 '18 at 2:24













0












0








0








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.










share|improve this question














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.







android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












2 Answers
2






active

oldest

votes


















0














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.






share|improve this answer

























  • 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


















1














act stands for Action and cat stands for Category



More details are here






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer

























    • 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















    0














    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.






    share|improve this answer

























    • 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













    0












    0








    0







    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.






    share|improve this answer















    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.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 13 '18 at 3:12

























    answered Nov 13 '18 at 2:24









    AaronAaron

    1,7232212




    1,7232212












    • 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

















    • 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
















    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













    1














    act stands for Action and cat stands for Category



    More details are here






    share|improve this answer



























      1














      act stands for Action and cat stands for Category



      More details are here






      share|improve this answer

























        1












        1








        1







        act stands for Action and cat stands for Category



        More details are here






        share|improve this answer













        act stands for Action and cat stands for Category



        More details are here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 '18 at 2:28









        Waqar KhanWaqar Khan

        254115




        254115



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kleinkühnau

            Makov (Slowakei)

            Deutsches Schauspielhaus