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 in Android by Edureka
• 10,880 points
32 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 by Edureka
• 12,290 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 in Android by Edureka
• 12,290 points
14 views
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 in Android by Edureka
• 12,290 points
38 views
0 votes
1 answer
0 votes
1 answer

How to turn on front flash light programmatically in Android?

For this problem you should: Check whether the ...READ MORE

answered Nov 8 in Android by Edureka
• 10,880 points
30 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 in Others by Soham
• 9,670 points
17,191 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 in Others by Kichu
• 19,040 points
159 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 in Others by nisha
• 2,190 points
143 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 in Android by Edureka
• 10,880 points
32 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 in Android by Edureka
• 12,290 points
27 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