package Ġcom . raf ael ne iva . floating note . floating view Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . os . Result Receiver Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . raf ael ne iva . floating note . R Ċ Ċ class ĠNote Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ note ) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġfinish () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġreceiver Ġ= Ġintent . get Parcelable Extra < Result Receiver >( Floating Window . KEY _ RECE IVER ) ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Data Ġ= ĠBundle () ĊĠĠĠĠĠĠĠ Ġresult Data . putString ( Floating Window . KEY _ MESSAGE , Ġ" Success ") ĊĠĠĠĠĠĠĠ Ġreceiver !!. send ( Activity . RESULT _ OK , Ġresult Data ) ĊĊĠĠĠĠĠĠĠ Ġsuper . finish () ĊĠĠĠ Ġ} Ċ } Ċ