EduardoElias Well-Known Member Licensed User Longtime User Jun 4, 2013 #1 Hi there! I have created a database Library that has 2 code modules and 5 class modules I was using it fine from the apk. Then I have tried to use this database library from another library and i have got the error "activity context required" However both libraries have no activity objects, neither references to activity. The problem occurred when I have tried to use a Sub from the database library from its code module. This code module is a "class factory" to create the objects from the other classes on this library. I wanted to access such sub without have to deal with a classes. Is it considered code module subs part of the activity context? Even there is no views or etc that make such thing? Is there a fix for that? thank you Eduardo
Hi there! I have created a database Library that has 2 code modules and 5 class modules I was using it fine from the apk. Then I have tried to use this database library from another library and i have got the error "activity context required" However both libraries have no activity objects, neither references to activity. The problem occurred when I have tried to use a Sub from the database library from its code module. This code module is a "class factory" to create the objects from the other classes on this library. I wanted to access such sub without have to deal with a classes. Is it considered code module subs part of the activity context? Even there is no views or etc that make such thing? Is there a fix for that? thank you Eduardo
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2013 #2 Can you send me the project that raises this error? Upvote 0