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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:03:39+00:00 2026-06-05T18:03:39+00:00

I am sending intent to a broadcast receiver like this. Intent cpIntent = new

  • 0

I am sending intent to a broadcast receiver like this.

Intent cpIntent = new Intent();
cpIntent.setClassName("com.android.contacts", "com.android.contacts.EABContactsAppReceiver");
cpIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
cpIntent.setAction(IMS_SUBSCRIBE); 
cpIntent.putExtra("contactid",contactid);
startActivity(cpIntent);

and at the receiver end I am accepting the intent as follows :

else if( intent.getAction().equals(ContactsListActivity.IMS_SUBSCRIBE )){ 
// this is a dummy event just to start the application
Log.d("ContactsAppReceiver", "IMS_SUBSCRIBE");
final String id = intent.getStringExtra("contactid");
Log.d(TAG,"id :"+id);

I have also declared the activity and the intent filter in Manifest file.

<receiver android:name="com.android.contacts.EABContactsAppReceiver">
            <intent-filter>
                <!-- <action android:name="com.sec.android.app.sns.action.UPDATE_ACTIVITY" />
-->             <!--<action android:name="com.sec.siso.imsservice.IMS_SERVICE_READY_EVENT" />-->
                            <action android:name="android.intent.action.BOOT_COMPLETED"/>
                            <action android:name="android.intent.action.ACTION_SYNC_STATE_CHANGED"/>
                <!-- <action android:name="com.sec.android.app.sns.action.UPDATE_MESSAGE" />
-->
                <action android:name="com.sec.siso.SUBSCRIBE"/>
                <action android:name="com.sec.siso.logs.SUBSCRIBE"/>
            </intent-filter>
        </receiver>

However I am still getting ActivityNotFoundException. Can anyone help me on this?

  • 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-06-05T18:03:40+00:00Added an answer on June 5, 2026 at 6:03 pm

    In your first code, you’re trying to start an activity instead of sending a broadcast. You should replace

    startActivity(cpIntent);
    

    with

    sendBroadcast(cpIntent);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when sending data to a php server through android I cam across this error:
Android documents starting the email intent for sending emails with Intent.ACTION_SEND. Is there an
http://www.helloandroid.com/tutorials/how-use-canvas-your-android-apps-part-1 At the end of this tutorial link for source code download is available.
I am currently firing an Intent to a Broadcast Receiver which in turns starts
In android application, sending ACTION_VIEW intent with URL will launch the system web browser
I have three buttons sending different variables to an activity: Intent i = new
Somehow my callback doesn't work... from a sending activity: Intent intent=new Intent(); intent.setAction(Constructor.rob.call); sendBroadcast(intent);
I am working with android source. I am sending a broadcast from one of
Sending Email in Android using JavaMail API without using the default/built-in app I'm trying
App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public

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.