O.k. I've made work arounds before, and have a work-around in this app, but I just can't help but look at the examples and believe there's a better way.
Activity1 has a screen with a button called bAdd, in bAdd's click event, I want to start activity 2 and call a sub called add_start (could just use the built in activity create event, if I knew there was a simple way to just load an activity if it wasn't already loaded and resume it and make it visible if not.....
So I use callsubdelayed(add,add_start)
But when I do, it says add_start is used before being declared, so even though it's add's module I'm wanting to call the sub from, I have to create an empty sub on activity1 named add_start to use callsubdelayed(add,add_start)
There may be a simple way of doing what I want to do easier, I'm not afraid to admit that android programming is not my forte. What is my forte is program design. I'm used to working out the details and letting the compiler design for the operating system. I love to make applications that run on multiple platforms. That's why I purchased b4a to begin with. It wasn't till I started with b4a that I started to learn more about how android apps are typically organized. Yes, I'm still learning the development, but I can't help but think this is something that could be better, and if so, perhaps it is something that could be better documented in the tutorial and manuals.
Activity1 has a screen with a button called bAdd, in bAdd's click event, I want to start activity 2 and call a sub called add_start (could just use the built in activity create event, if I knew there was a simple way to just load an activity if it wasn't already loaded and resume it and make it visible if not.....
So I use callsubdelayed(add,add_start)
But when I do, it says add_start is used before being declared, so even though it's add's module I'm wanting to call the sub from, I have to create an empty sub on activity1 named add_start to use callsubdelayed(add,add_start)
There may be a simple way of doing what I want to do easier, I'm not afraid to admit that android programming is not my forte. What is my forte is program design. I'm used to working out the details and letting the compiler design for the operating system. I love to make applications that run on multiple platforms. That's why I purchased b4a to begin with. It wasn't till I started with b4a that I started to learn more about how android apps are typically organized. Yes, I'm still learning the development, but I can't help but think this is something that could be better, and if so, perhaps it is something that could be better documented in the tutorial and manuals.