L Levit Member Licensed User Longtime User Feb 2, 2017 #1 Hi everybody, Is there a way to check by code if a library is loaded ? I want to make a library that will use other library resources but ONLY IF that other library is loaded. Example: I make a library that may use 'SetscreeenOrientation' IF 'Phone' library is loaded. But if I use my library in an app that uses only 'Portrait' I don't need to load 'Phone' library. something that do this: if Phone library is loaded then.... is it possible? Thanks
Hi everybody, Is there a way to check by code if a library is loaded ? I want to make a library that will use other library resources but ONLY IF that other library is loaded. Example: I make a library that may use 'SetscreeenOrientation' IF 'Phone' library is loaded. But if I use my library in an app that uses only 'Portrait' I don't need to load 'Phone' library. something that do this: if Phone library is loaded then.... is it possible? Thanks
DonManfred Expert Licensed User Longtime User Feb 2, 2017 #2 Levit said: is it possible? Click to expand... I dont know a way to do this check. Probably the answer is NO Upvote 0
Levit said: is it possible? Click to expand... I dont know a way to do this check. Probably the answer is NO
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2017 #3 It is possible by making the calls with reflection. I think that in most cases it is a waste of time / energy. The Phone library is 80k. Google Play Services for example is 3 or more megabytes. Upvote 0
It is possible by making the calls with reflection. I think that in most cases it is a waste of time / energy. The Phone library is 80k. Google Play Services for example is 3 or more megabytes.
L Levit Member Licensed User Longtime User Feb 3, 2017 #4 Erel said: It is possible by making the calls with reflection. I think that in most cases it is a waste of time / energy. The Phone library is 80k. Google Play Services for example is 3 or more megabytes. Click to expand... Thanks @Erel I'll give it a try. At least I learn a bit more. Upvote 0
Erel said: It is possible by making the calls with reflection. I think that in most cases it is a waste of time / energy. The Phone library is 80k. Google Play Services for example is 3 or more megabytes. Click to expand... Thanks @Erel I'll give it a try. At least I learn a bit more.