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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:55:15+00:00 2026-05-24T11:55:15+00:00

I am a newbie to Android development. I am trying to invent a broadcast

  • 0

I am a newbie to Android development. I am trying to invent a broadcast receiver from my activity.

public class MyReceiver extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context,"ABC", Toast.LENGTH_LONG).show();
        Bundle extras = intent.getExtras();
        String[] parameters= (String[])intent.getSerializableExtra("parameters");
    }
}

my activity is

public class MyActivity extends Activity {
    public static String BROADCAST_ACTION="com.kiosk.cbal.CALL_RECEIVER";

    /**
     * @see android.app.Activity#onCreate(Bundle)
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String parameters = "safdsam,fdsa,fdsa,fdsa,fdsa";
        String[] parameters =abc.split(",");
        Intent i = new Intent("com.package.MyReceiver");
        i.putExtra("parameters", parameters);
        sendBroadcast(i);
    }
}

My Manifest file is

<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="1" android:versionName="1.0"
    package="com.package" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="7"/>
    <application android:icon="@drawable/icon" android:label="@string/app_name">

        <activity android:label="@string/app_name" android:name="MyActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <receiver android:name="MyReceiver">
            <intent-filter>
                <action android:name="com.kiosk.cbal.CALL_RECEIVER"/>
            </intent-filter>
        </receiver> 

    </application>
    <uses-permission android:name="android.permission.BATTERY_STATS"/>
</manifest>

Now how I’ll Be able to give a call to broadcast receiver through an activity?

  • 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-24T11:55:15+00:00Added an answer on May 24, 2026 at 11:55 am

    Remove the space from the action name. Use the name when you create the Intent.

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

Sidebar

Related Questions

As a newbie to Android development, I'm trying to do the basics and build
I am newbie to android game development. I've been trying an example of game
I am a newbie to android development. I am trying to create a List
I am a newbie for android development and I came from WP7 world, so
Extreme Android developer newbie here...well, new to Android development, not development in general. I
Hi am newbie to android development. I had created one application where i need
Everyone, I am a newbie to android development. Now I have a question that
I am a newbie to android app development. I want to customize my android
I am a newbie to Android and the Eclipse development environment and would like
Im a newbie in android development and thats why im asking you experts such

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.