Hacker News new | past | comments | ask | show | jobs | submit login

Never looked into Classloader until now. Very interesting. Can a loaded class also be an extension of a view or an activity?



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: