Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6555129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:46:55+00:00 2026-05-25T12:46:55+00:00

Im attempting to build an android application and one of the key features to

  • 0

Im attempting to build an android application and one of the key features to this application is for it to be able to launch an activity automatically when the phone starts, I see some apps on my phone that already do this, any help would be great so that I can atleast research this a little better through the sdk, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:46:55+00:00Added an answer on May 25, 2026 at 12:46 pm

    You need to implement BroadCastreceiver like this:

    public class PhoneStateReceiver extends BroadcastReceiver{
    
        @Override
        public void onReceive(final Context context, Intent intent) {
    
            if(intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){
                Intent launch = new Intent(context, AcitivityToLaunch.class);
                launch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                context.startActivity(launch);
            }
        }
    }
    

    In your manifest add this:

    <receiver android:name=".receiver.PhoneStateReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>
    

    Add permission:

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to build an augmented reality application for Android and have come
I'm attempting to build a JSF/Hibernate application using Java 7 and Tomcat 7. I
I am currently attempting to build a web application that relies quite heavily on
I'm pretty exasperated. I'm attempting to build a turn-based multiplayer online game for Android
I'm following the following tutorial for Facebook Connect: https://developers.facebook.com/docs/mobile/android/build/ And attempting to allow my
I've been developing a project in phonegap, attempting to build for Android and iOS.
I am attempting to create a standalone ant build file for android. We are
I'm attempting to build an Android layout that has a fixed footer, with the
I am attempting to build my android project using ant (it runs fine in
I am attempting to build the Android port of Hedgewars on Windows, using make/ant

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.