Hi,
My app has a main activity and also a widget. Currently, I'm using two activities, one is for the app's main "screen" and the other is for the widget. This scheme is hard to work with, since B4A is not able to debug into widgets, and I need to have the same appearance and the same logic on both activities. So, I am simply replicating the views and logic from one activity into the other activity. Hard to develop and maintain...
Maybe it's a dumb question but... can I use only one activity and share this activity and it's views between the main "screen" and the widget? How to manage events, variables and subs in that case?
Regards,
My app has a main activity and also a widget. Currently, I'm using two activities, one is for the app's main "screen" and the other is for the widget. This scheme is hard to work with, since B4A is not able to debug into widgets, and I need to have the same appearance and the same logic on both activities. So, I am simply replicating the views and logic from one activity into the other activity. Hard to develop and maintain...
Maybe it's a dumb question but... can I use only one activity and share this activity and it's views between the main "screen" and the widget? How to manage events, variables and subs in that case?
Regards,