'How to load MainActivity.java from server?
I'm developing an app in which the code is in MainActivity.java (locally) but I would like know how can I load MainActivity.java externally?
Example: Save the MainActivity.java on my web server. When the app loads, it get MainActivity.java from my server rather than locally?
I've been searching the web and Stack Overflow but haven't had any luck.
Solution 1:[1]
You can't. The idea of an app is that the code run on the device is local. Not running downloaded code is part of the design. Can you imagine what a security nightmare it would be to run non-sandboxed code downloaded from a server at runtime?
Solution 2:[2]
i too really want to load a method from server , by which I can make changes in the method without upda
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Gabe Sechan |
Solution 2 | abdul rasheed |