You can do this. Just need to use proper class/func/signature which sometimes not easy to know. Also you have to take care about return value, exceptions and threads of cause.
The solution in prev answer is much easier to do.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/adcf3efd-8b4e-414c-bf4f-de99f1643a7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.