Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, Guys, I want to know how to define fragment activity in manifest.xml in android studio because there is no option to select fragment activity in manifest please see the screenshot [^] and please guide me how can I do this
Thanks in advance

What I have tried:

<activity
android:name="."
android:label="@string/app_name"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan">
Posted
Updated 5-Aug-22 0:57am
Comments
David Crow 11-Jan-18 13:15pm    
Fragments don't exist without a parent/owning activity, therefore nothing goes in the AndroidManifest.xml file.

You don't need to define Fragment Activity in mainfest.xml.
 
Share this answer
 
You can't start a Fragment as an Activity, you'll have to wrap the fragment in an Activity that extends FragmentActivity
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900