Re:Ask HN: What is the most exciting development in your fie...
by Curious42 on Sunday February 05, 2017 @08:30AM
(#13572333)
Never looked into Classloader until now. Very interesting. Can a loaded class also be an extension of a view or an activity?
Re:Ask HN: What is the most exciting development in your fie...
by hyperpallium on Monday February 06, 2017 @03:49AM
(#13577686)
I'm loading a GLSurfaceView, which extends SurfaceView, which extends View. So, yeah.
There shouldn't be any problem classloading an Activity, use reflection to instantiate, and treat as you would a runtime Activity (as opposed to being declared in AndroidManifest.xml). But I haven't actually done this; could be some gotchas in incorporating runtime a Activity into the GUI.
IIRC google had a few hits on classloading Activities.
Full OS access could mean permissions per page - could be awkward or ok. Much of the app vs. webpage debate here is the same as always - though offline advantage is gome.