I am trying to remote invoke method form other apk. Everything is working except fact that invoking method has to do some operations on UI and must be run from UI Thread. Method which was invoked with Method.invoke() are running in separate thread and has no access to UI. Is AsyncTask is a proper way to solve this problem? Or maybe exists a better solution.
Share
There are handlers and runOnUIThread() methods specially for situations like this.. you can use them..
you can use handler like this..
if you are inside an Activity.. then..