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 7436219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:12:14+00:00 2026-05-29T10:12:14+00:00

I have used Broadcast receiver when it restarts it shows the launcher screen but

  • 0

I have used Broadcast receiver when it restarts it shows the launcher screen but doesnt start my default home automatically…I had to choose my activity to start …how to launch my activity automatically ? … Here is my androidmanifest.xml

<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" 
     >
     <receiver android:name=".receiver.onPhoneReceiver">
     <intent-filter>
     <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
     </receiver>

    <activity
        android:name=".DisableHomeActivity"
        android:label="@string/app_name" 
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > 
       <intent-filter>
         <action android:name="android.intent.action.MAIN" /> 
             <category android:name="android.intent.category.HOME" />                                
              <category android:name="android.intent.category.DEFAULT" />                         
       </intent-filter>
    </activity>
</application>

  • 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-29T10:12:16+00:00Added an answer on May 29, 2026 at 10:12 am

    You need to you following code in BroadcastReceiver,

    public void onReceive(Context context, Intent intent)
    {
        System.out.println ( "Application Started" );
        // put your TimerTask calling class here
    
        try
        {
            Intent myIntent = new Intent ( context, AutoStartExampleActivity.class );
            myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(myIntent);
        }
        catch ( Exception e )
        {
            System.out.println ( " Error while Starting Activity " + e.toString() );
        }
    }
    

    You can download an example for here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a broadcast receiver that will start an intent service to do some
I have used the silverlight control in CRM 2011.It also published on form but
I have used a plugin that uses prototype js, it's working fine but the
I have used NSSets many times in my apps, but I have never created
I have used geocoder in my ruby on rails application for a while but
I have an Android Service. When a phone boots up, a broadcast receiver receives
I have an SMS broadcast receiver in my application with a static boolean value
I have been trying to work out how to clear a broadcast receiver after
Hello I faced the same problem I have 1 broadcast receiver from that I
I have just used proguard, but classes I am trying to instantiate via reflection

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.