I think the ComponentName class is missing, therefore it is not possible to use intent.setComponent

I think the ComponentName class is missing, therefore it is not possible to use intent.setComponent 

Edit: you can receive a ComponentName object by intent.getComponent, but you can’t create your own.

Pierre Hébert would you please include this class?

]]>

5 Commentsto I think the ComponentName class is missing, therefore it is not possible to use intent.setComponent

  1. Anonymous says:

    < ![CDATA[

    How do I find a class name?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Usually it is not shown to the user. You may find in while watching at adb logcat : the package/class is usually displayed in the log when you launch an activity for instance.


    Another way is to have a look at the AndroidManifest.xml file in a package (where activities are defined), but this requires more tools.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I already had a look at the manifest, but I didn’t find any class names there. Only package and action names were there.



    For those who may ask how I got the manifest:


    I exported the apk with SDMaid to my storage and then used fx archive explorer to look inside.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    The class name is the concatenation of the package name and the field “name” in the activity record if it starts with a dot, otherwise you can use the value as is.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *