package Ġcom . mx cs yo unes . dynamic broadcast Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . content . Intent Filter Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . local broadcast manager . content . Local Broadcast Manager Ċ import Ġkotlinx . android . synt hetic . main . activity _ main .* Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmanager Ġ= ĠLocal Broadcast Manager . getInstance ( this ) ĊĊĠĠĠĠĠĠĠ Ġmanager . register Receiver ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSimple Receiver (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠIntent Filter (" com . mx cs yo unes . dynamic broadcast . ACTION ") ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġlaunch But tn . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmanager . send Broadcast ( Intent (" com . mx cs yo unes . dynamic broadcast . ACTION ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊ Ċ } Ċ