How to load a class from another application in android

Is there a way to load a class from another application?

for example, I have two applications, and one of them has a file of the SomeExample class. and I want to download it and use from another application.

I am trying to use Class.forName. but this function throws a "ClassNotFoundExpetion".

+3
source share
2 answers

Is there a way to load a class from another application?

No, sorry.

You can use startActivity(), startService()etc. to run components of another application, but each application code remains separate.

+4
source
+1

Source: https://habr.com/ru/post/1793566/


All Articles