How to set my Activity as main activity in android

0 votes
Instead of using the default MainActivity, I want to develop my own activity to serve as the primary activity.

What does it mean in the Android manifest?
Nov 7, 2022 in Android by Edureka
• 12,690 points
2,329 views

1 answer to this question.

0 votes

The "intent-filter" in "AndroidManifest.xml" allows you to set the initial activity (default activity) of your Android application.

To set an activity class named "logoActivity" as the default activity, see the following line of code.

File : AndroidManifest.xml

        <activity
            android:label="Logo"
            android:name=".logoActivity" >
             <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
answered Nov 8, 2022 by Edureka
• 13,620 points

Related Questions In Android

0 votes
0 answers

How to play YouTube video in my Android application?

How can I embed YouTube videos in ...READ MORE

Nov 15, 2022 in Android by Edureka
• 13,620 points
520 views
0 votes
0 answers
0 votes
0 answers

How to make grid view scroll horizontally not vertically in android?

I use a flexible Grid View. means ...READ MORE

Sep 21, 2022 in Android by Edureka
• 13,620 points
524 views
0 votes
1 answer

How to open the Google Play Store directly from my Android application?

If you want to link to your ...READ MORE

answered Nov 7, 2022 in Android by Edureka
• 12,690 points
4,330 views
0 votes
1 answer

manifest merger failed with multiple errors, see logs

The initial process would be to open ...READ MORE

answered Feb 8, 2022 in Others by Soham
• 9,710 points
32,821 views
0 votes
0 answers

Could not identify launch Activity: Default Activity not found

I am getting this error: "Could not ...READ MORE

May 23, 2022 in Others by Kichu
• 19,040 points
1,036 views
0 votes
1 answer

How to make android phone flashlight blink?

This might be too fast to blink:- String[] ...READ MORE

answered Jun 6, 2022 in Others by nisha
• 2,210 points
1,991 views
0 votes
1 answer

Android Shared preferences for creating one time activity

Android offers a variety of options for ...READ MORE

answered Nov 8, 2022 in Android by Edureka
• 12,690 points
536 views
0 votes
1 answer
0 votes
1 answer

How get permission for camera in android.(Specifically Marshmallow)?

To begin with, confirm that the user ...READ MORE

answered Nov 8, 2022 in Android by Edureka
• 13,620 points
3,741 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP