thecr0w
thecr0w

Reputation: 2197

Shortcut Can't Start Activity

Upvotes: 1

Views: 2555

Answers (1)

Matt Handy
Matt Handy

Reputation: 30025

As the error message suggests, you could add

android:exported="true"

to your activity.

Although this should be the default value if I read the android documentation right:

android:exported

Whether or not the activity can be launched by components of other applications — "true" if it can be, and "false" if not. If "false", the activity can be launched only by components of the same application or applications with the same user ID. The default value depends on whether the activity contains intent filters. The absence of any filters means that the activity can be invoked only by specifying its exact class name. This implies that the activity is intended only for application-internal use (since others would not know the class name). So in this case, the default value is "false". On the other hand, the presence of at least one filter implies that the activity is intended for external use, so the default value is "true".

Maybe someone else can clarify this.

Upvotes: 6

Related Questions