Calling activity method


#1

I have existing android project which have one ‘xyz’ activity class.One public function ‘abc’ is define in this activity.How can I access this method from ts in nativescript?


#2

If the public function is static you can call the method like:
full.path.to.Xyz.abc(…)


#3

Thanks.I will try it


#4

I belive I gave you a detailed response in the Github issue - https://github.com/NativeScript/android-runtime/issues/854


#5

Yes,Thanks for that.It works fine