Question About Code Module and Activity Context

EduardoElias

Active Member
Licensed User
Longtime User
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
 
Top