Answer the question
In order to leave comments, you need to log in
How to implement multiple actions for 1 activity?
Good afternoon, I would like to ask a question. Is it possible to implement multiple actions for one Activity?
Tried like this:
<activity
android:name="project.cvnbn.sdfsdg.tessdf.HomeActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN|android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER|android.intent.category.DEFAULT" />
<data android:scheme="content" android:host="project.space.open.openspace.hash"/>
</intent-filter>
</activity>
Answer the question
In order to leave comments, you need to log in
Thanks for the answers Scorpi .
Managed to do this:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="content" android:host="project.space.open.openspace.hash"/>
</intent-filter>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question