SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
Suppose you have two applications, A and B. App A is responsible for broadcasting a value
representing a mark to App B, as shown below.
Application A
1public class MainActivity extends AppCompatActivity {
2
3 @Override 4 protected void onCreate(Bundle savedInstanceSta
te) {
5 super.onCreate(savedInstanceState);
6 setContentView(R.layout.activity_main);
7 }
8 public void onSendBroadcastClick(View view){
9 Intent intent=new Intent();
10 intent.setAction("FIT2081-S1-23-W4-Q1");
11 intent.putExtra("total_mark",5);
12 sendBroadcast(intent);
13 }
14}
Application B
1public class MainActivity extends AppCompatActivity {
2 @Override
3 protected void onCreate(Bundle savedInstanceState) {
4 super.onCreate(savedInstanceState);
5 setContentView(R.layout.activity_main);
6 // your code here
7 }
8}
9
10 class BroadcastReceiver { 11 // your code here 12}The class 'Broad
castReceiver' is the broadcast receiver responsible for receiving the broadcast of App A and
showing it in a Toast.
Your task is to complete the implementation of App B ( see lines 6 and 11)

Más contenido relacionado

Similar a Suppose you have two applications, A and B. App A is responsible for.pdf

Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docKNANTHINIMCA
 
How to code to code less
How to code to code lessHow to code to code less
How to code to code lessAnton Novikau
 
Developing for android wear
Developing for android wearDeveloping for android wear
Developing for android wearThomas Oldervoll
 
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!Sébastien Levert
 
APIs, APIs Everywhere!
APIs, APIs Everywhere!APIs, APIs Everywhere!
APIs, APIs Everywhere!BIWUG
 
Skinning Android for Embedded Applications
Skinning Android for Embedded ApplicationsSkinning Android for Embedded Applications
Skinning Android for Embedded ApplicationsVIA Embedded
 
Getting Ready For Android Wear
Getting Ready For Android WearGetting Ready For Android Wear
Getting Ready For Android WearRaveesh Bhalla
 
android level 3
android level 3android level 3
android level 3DevMix
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...naseeb20
 
AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedMarvin Heng
 
Android Wearables ii
Android Wearables iiAndroid Wearables ii
Android Wearables iiKetan Raval
 
Android Wear – IO Extended
Android Wear – IO ExtendedAndroid Wear – IO Extended
Android Wear – IO ExtendedDouglas Drumond
 
Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)Alfredo Morresi
 
08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)Oum Saokosal
 
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...mharkus
 

Similar a Suppose you have two applications, A and B. App A is responsible for.pdf (20)

Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.doc
 
How to code to code less
How to code to code lessHow to code to code less
How to code to code less
 
Simplest calculator app using android studio android workshop
Simplest calculator app using android studio   android workshopSimplest calculator app using android studio   android workshop
Simplest calculator app using android studio android workshop
 
Developing for android wear
Developing for android wearDeveloping for android wear
Developing for android wear
 
How to create android push notifications with custom view
How to create android push notifications with custom viewHow to create android push notifications with custom view
How to create android push notifications with custom view
 
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!
SharePoint Saturday Belgium 2018 - APIs, APIs everywhere!
 
APIs, APIs Everywhere!
APIs, APIs Everywhere!APIs, APIs Everywhere!
APIs, APIs Everywhere!
 
DAY2.pptx
DAY2.pptxDAY2.pptx
DAY2.pptx
 
Skinning Android for Embedded Applications
Skinning Android for Embedded ApplicationsSkinning Android for Embedded Applications
Skinning Android for Embedded Applications
 
Getting Ready For Android Wear
Getting Ready For Android WearGetting Ready For Android Wear
Getting Ready For Android Wear
 
android level 3
android level 3android level 3
android level 3
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...
 
Introduction toandroid
Introduction toandroidIntroduction toandroid
Introduction toandroid
 
AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You Typed
 
Android Wearables ii
Android Wearables iiAndroid Wearables ii
Android Wearables ii
 
Android Wear – IO Extended
Android Wear – IO ExtendedAndroid Wear – IO Extended
Android Wear – IO Extended
 
Jsf intro
Jsf introJsf intro
Jsf intro
 
Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)
 
08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)
 
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
 

Más de atulgovil3

The amount of time the university professors devote to their jobs pe.pdf
The amount of time the university professors devote to their jobs pe.pdfThe amount of time the university professors devote to their jobs pe.pdf
The amount of time the university professors devote to their jobs pe.pdfatulgovil3
 
The Adjusted Trial Balance for Aster Turane Computers is below.pdf
The Adjusted Trial Balance for Aster Turane Computers is below.pdfThe Adjusted Trial Balance for Aster Turane Computers is below.pdf
The Adjusted Trial Balance for Aster Turane Computers is below.pdfatulgovil3
 
The accompanying table shows the percentages of women in scientific .pdf
The accompanying table shows the percentages of women in scientific .pdfThe accompanying table shows the percentages of women in scientific .pdf
The accompanying table shows the percentages of women in scientific .pdfatulgovil3
 
The A&T pension fund has $13 billion, invested in equities. Assume a.pdf
The A&T pension fund has $13 billion, invested in equities. Assume a.pdfThe A&T pension fund has $13 billion, invested in equities. Assume a.pdf
The A&T pension fund has $13 billion, invested in equities. Assume a.pdfatulgovil3
 
The ability to make sense of complexity is independent of managerial.pdf
The ability to make sense of complexity is independent of managerial.pdfThe ability to make sense of complexity is independent of managerial.pdf
The ability to make sense of complexity is independent of managerial.pdfatulgovil3
 
Thanks in advance(MIPS) For the following C statement, what is the.pdf
Thanks in advance(MIPS) For the following C statement, what is the.pdfThanks in advance(MIPS) For the following C statement, what is the.pdf
Thanks in advance(MIPS) For the following C statement, what is the.pdfatulgovil3
 
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdf
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdfthank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdf
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdfatulgovil3
 
thank you Expense (602). The following events occurred in the month.pdf
thank you  Expense (602). The following events occurred in the month.pdfthank you  Expense (602). The following events occurred in the month.pdf
thank you Expense (602). The following events occurred in the month.pdfatulgovil3
 
Texas Corporation began the year with 56 units, each costing $9. On .pdf
Texas Corporation began the year with 56 units, each costing $9. On .pdfTexas Corporation began the year with 56 units, each costing $9. On .pdf
Texas Corporation began the year with 56 units, each costing $9. On .pdfatulgovil3
 
Test your Knowledge (Question) What are the challenges which organiz.pdf
Test your Knowledge (Question) What are the challenges which organiz.pdfTest your Knowledge (Question) What are the challenges which organiz.pdf
Test your Knowledge (Question) What are the challenges which organiz.pdfatulgovil3
 
Thales Company tiene la siguiente informaci�n para enero Costo de.pdf
Thales Company tiene la siguiente informaci�n para enero Costo de.pdfThales Company tiene la siguiente informaci�n para enero Costo de.pdf
Thales Company tiene la siguiente informaci�n para enero Costo de.pdfatulgovil3
 
Ten random chords of a circle are chosen, independently. To generate.pdf
Ten random chords of a circle are chosen, independently. To generate.pdfTen random chords of a circle are chosen, independently. To generate.pdf
Ten random chords of a circle are chosen, independently. To generate.pdfatulgovil3
 
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdf
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdfTemmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdf
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdfatulgovil3
 
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdf
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdfTechnology Co. fabrica DVD para software inform�tico y empresas de e.pdf
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdfatulgovil3
 
taxation is an economic factor that impacts on consumers levels of .pdf
taxation is an economic factor that impacts on consumers levels of .pdftaxation is an economic factor that impacts on consumers levels of .pdf
taxation is an economic factor that impacts on consumers levels of .pdfatulgovil3
 
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdf
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdfTaxmania es una econom�a cerrada con gobierno. La demanda agregada.pdf
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdfatulgovil3
 
Task 1 Financial justification to aid decision making 1 (a) Using f.pdf
Task 1 Financial justification to aid decision making 1 (a) Using f.pdfTask 1 Financial justification to aid decision making 1 (a) Using f.pdf
Task 1 Financial justification to aid decision making 1 (a) Using f.pdfatulgovil3
 
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdf
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdfTanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdf
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdfatulgovil3
 
Tamara is a new hire at Target. In learning the organizational norms.pdf
Tamara is a new hire at Target. In learning the organizational norms.pdfTamara is a new hire at Target. In learning the organizational norms.pdf
Tamara is a new hire at Target. In learning the organizational norms.pdfatulgovil3
 
Tahakkuklar ve �denecek hesaplar .pdf
Tahakkuklar ve �denecek hesaplar .pdfTahakkuklar ve �denecek hesaplar .pdf
Tahakkuklar ve �denecek hesaplar .pdfatulgovil3
 

Más de atulgovil3 (20)

The amount of time the university professors devote to their jobs pe.pdf
The amount of time the university professors devote to their jobs pe.pdfThe amount of time the university professors devote to their jobs pe.pdf
The amount of time the university professors devote to their jobs pe.pdf
 
The Adjusted Trial Balance for Aster Turane Computers is below.pdf
The Adjusted Trial Balance for Aster Turane Computers is below.pdfThe Adjusted Trial Balance for Aster Turane Computers is below.pdf
The Adjusted Trial Balance for Aster Turane Computers is below.pdf
 
The accompanying table shows the percentages of women in scientific .pdf
The accompanying table shows the percentages of women in scientific .pdfThe accompanying table shows the percentages of women in scientific .pdf
The accompanying table shows the percentages of women in scientific .pdf
 
The A&T pension fund has $13 billion, invested in equities. Assume a.pdf
The A&T pension fund has $13 billion, invested in equities. Assume a.pdfThe A&T pension fund has $13 billion, invested in equities. Assume a.pdf
The A&T pension fund has $13 billion, invested in equities. Assume a.pdf
 
The ability to make sense of complexity is independent of managerial.pdf
The ability to make sense of complexity is independent of managerial.pdfThe ability to make sense of complexity is independent of managerial.pdf
The ability to make sense of complexity is independent of managerial.pdf
 
Thanks in advance(MIPS) For the following C statement, what is the.pdf
Thanks in advance(MIPS) For the following C statement, what is the.pdfThanks in advance(MIPS) For the following C statement, what is the.pdf
Thanks in advance(MIPS) For the following C statement, what is the.pdf
 
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdf
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdfthank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdf
thank you. the whwartered in Haagse Host, The Hague, Neticerands. Sh.pdf
 
thank you Expense (602). The following events occurred in the month.pdf
thank you  Expense (602). The following events occurred in the month.pdfthank you  Expense (602). The following events occurred in the month.pdf
thank you Expense (602). The following events occurred in the month.pdf
 
Texas Corporation began the year with 56 units, each costing $9. On .pdf
Texas Corporation began the year with 56 units, each costing $9. On .pdfTexas Corporation began the year with 56 units, each costing $9. On .pdf
Texas Corporation began the year with 56 units, each costing $9. On .pdf
 
Test your Knowledge (Question) What are the challenges which organiz.pdf
Test your Knowledge (Question) What are the challenges which organiz.pdfTest your Knowledge (Question) What are the challenges which organiz.pdf
Test your Knowledge (Question) What are the challenges which organiz.pdf
 
Thales Company tiene la siguiente informaci�n para enero Costo de.pdf
Thales Company tiene la siguiente informaci�n para enero Costo de.pdfThales Company tiene la siguiente informaci�n para enero Costo de.pdf
Thales Company tiene la siguiente informaci�n para enero Costo de.pdf
 
Ten random chords of a circle are chosen, independently. To generate.pdf
Ten random chords of a circle are chosen, independently. To generate.pdfTen random chords of a circle are chosen, independently. To generate.pdf
Ten random chords of a circle are chosen, independently. To generate.pdf
 
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdf
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdfTemmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdf
Temmuz 2015te, yenidoan youn bakm �nitesindeki ilk salgndan 10 yl s.pdf
 
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdf
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdfTechnology Co. fabrica DVD para software inform�tico y empresas de e.pdf
Technology Co. fabrica DVD para software inform�tico y empresas de e.pdf
 
taxation is an economic factor that impacts on consumers levels of .pdf
taxation is an economic factor that impacts on consumers levels of .pdftaxation is an economic factor that impacts on consumers levels of .pdf
taxation is an economic factor that impacts on consumers levels of .pdf
 
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdf
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdfTaxmania es una econom�a cerrada con gobierno. La demanda agregada.pdf
Taxmania es una econom�a cerrada con gobierno. La demanda agregada.pdf
 
Task 1 Financial justification to aid decision making 1 (a) Using f.pdf
Task 1 Financial justification to aid decision making 1 (a) Using f.pdfTask 1 Financial justification to aid decision making 1 (a) Using f.pdf
Task 1 Financial justification to aid decision making 1 (a) Using f.pdf
 
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdf
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdfTanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdf
Tanya Walker, a 45-year-old female, has metastatic breast cancer. Sh.pdf
 
Tamara is a new hire at Target. In learning the organizational norms.pdf
Tamara is a new hire at Target. In learning the organizational norms.pdfTamara is a new hire at Target. In learning the organizational norms.pdf
Tamara is a new hire at Target. In learning the organizational norms.pdf
 
Tahakkuklar ve �denecek hesaplar .pdf
Tahakkuklar ve �denecek hesaplar .pdfTahakkuklar ve �denecek hesaplar .pdf
Tahakkuklar ve �denecek hesaplar .pdf
 

Último

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Último (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Suppose you have two applications, A and B. App A is responsible for.pdf

  • 1. Suppose you have two applications, A and B. App A is responsible for broadcasting a value representing a mark to App B, as shown below. Application A 1public class MainActivity extends AppCompatActivity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceSta te) { 5 super.onCreate(savedInstanceState); 6 setContentView(R.layout.activity_main); 7 } 8 public void onSendBroadcastClick(View view){ 9 Intent intent=new Intent(); 10 intent.setAction("FIT2081-S1-23-W4-Q1"); 11 intent.putExtra("total_mark",5); 12 sendBroadcast(intent); 13 } 14} Application B 1public class MainActivity extends AppCompatActivity { 2 @Override 3 protected void onCreate(Bundle savedInstanceState) { 4 super.onCreate(savedInstanceState); 5 setContentView(R.layout.activity_main); 6 // your code here 7 } 8} 9 10 class BroadcastReceiver { 11 // your code here 12}The class 'Broad castReceiver' is the broadcast receiver responsible for receiving the broadcast of App A and showing it in a Toast. Your task is to complete the implementation of App B ( see lines 6 and 11)