package Ġbr . uf pe . cin . if 7 1 0 . system services . phones ms Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . Toast Ċ import Ġbr . uf pe . cin . if 7 1 0 . system services . R Ċ import Ġkotlinx . android . synt hetic . main . activity _ sms _ received .* Ċ Ċ class ĠS ms Received Activity Ġ: ĠActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ sms _ received ) ĊĊĠĠĠĠĠĠĠ Ġval Ġi Ġ= Ġintent ĊĠĠĠĠĠĠĠ Ġval Ġmsg From Extra Ġ= Ġi . getString Extra (" msg From ") ĊĠĠĠĠĠĠĠ Ġval Ġmsg Body Extra Ġ= Ġi . getString Extra (" msg Body ") ĊĠĠĠĠĠĠĠ Ġif Ġ( msg From Extra Ġ!= Ġnull Ġ&& Ġmsg Body Extra Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmsg From . text Ġ= Ġmsg From Extra ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmsg Body . text Ġ= Ġmsg Body Extra ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠToast . makeText ( this , Ġ" Intent Ġv az io ", ĠToast . LENGTH _ SHORT ). show () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfinish () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ