showModal return context problem

nativescriptrocks
android

#1

in this example i can pass context to new custom dialog.
but from custom dialog how to return some context so that it will print in console after modal is closed ???

i have setup everything expect context return from new.xml to main-page.xml which i dont know.