Dear Frens,
I m currently trying to rewrite a custom-view in B4A which contains Grid with pan,zoom(using Gesture Detector lib) for calculating area of geometric figures, structure cut fill etc.
Here i am stuck with an error :
An Activity Context is Required.This call has a process context. Adding a global "Activity object" variable will fix this issue.
I have found a fix from this link :http://www.b4x.com/android/forum/th...s-when-no-activity-context-is-required.19300/
but still i could'nt solve my issue.
I have attached my project here with.
Where :
I have a Model Class Which is used to manage added node in Grid.
Node class for Adding nodes.
But i found an error in Node class for Draw sub method where id1 is a local variable for Node class but it requires the Activity context why?
if i Create a dummy view in Node Class then the error will be solved but it will popup error in my model class in AddNode method, where currnode is local to Model class.
M i doing something wrong?
Please help me if possible.
Best Regards...
I m currently trying to rewrite a custom-view in B4A which contains Grid with pan,zoom(using Gesture Detector lib) for calculating area of geometric figures, structure cut fill etc.
Here i am stuck with an error :
An Activity Context is Required.This call has a process context. Adding a global "Activity object" variable will fix this issue.
I have found a fix from this link :http://www.b4x.com/android/forum/th...s-when-no-activity-context-is-required.19300/
but still i could'nt solve my issue.
I have attached my project here with.
Where :
I have a Model Class Which is used to manage added node in Grid.
Node class for Adding nodes.
But i found an error in Node class for Draw sub method where id1 is a local variable for Node class but it requires the Activity context why?
if i Create a dummy view in Node Class then the error will be solved but it will popup error in my model class in AddNode method, where currnode is local to Model class.
M i doing something wrong?
Please help me if possible.
Best Regards...