Android Question An Activity context is required Error

ddahan

Member
Licensed User
Longtime User
Hi,
I'm trying build a panel with his views and return it from a class module but I'm getting this error:

Parsing code. 0.15
Compiling code. Error
Error compiling program.
Error description: An Activity context is required.
This class has a process context.
Adding a global "Activity object" variable will fix this issue.
Occurred on line: 216
SearchSVRowPnl.Initialize("")
Word: initialize

This concept works well on a small example , but on the big project it fails.

I have found a work around that resolve the issue here:
http://www.b4x.com/android/forum/th...s-when-no-activity-context-is-required.19300/

I'm wondering if this issue is still B4A bug or a code issue.

Thanks,
David.
 

ddahan

Member
Licensed User
Longtime User
Thanks for your fast response.
is it the same solution as adding :
Dim dummyView As View ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…