Hello,
After a long time, I managed to port the StandOut library to Basic4Android.
StandOut is a library which you can use to make floating like apps.
StandOut - Create Floating Android Apps - YouTube
When calling a StandOut window, it creates a service which shows the window.
Now the problem is how I can interact with the views from Basic4Android.
In Basic4Android, I start a WindowService which takes care of the StandOut library. (Because it will be useless if you use StandOut with an Activity on it.)
1. I need to find a way on how to interact with all events from the views, for example button clicks, etc from a B4A service.
So some kind of eventlistener that listens on the service when a button is pressed.
2. Also, i found a way on how to add views using CallSubDelayed, but i don't know if this is the correct way.
Isn't there an easier way i can add views to the window from a service? (because most of them result in a nullpointer. Probably because of the context?)
3. Is it possible to create a view programmatically in a class, pass it to the service and the service adds the view to the StandOut Window? So the class has it's own activity context, so actually the events of the window will be called to the class module?
Any possible ideas to help me are welcome
Kind regards,
Tomas
After a long time, I managed to port the StandOut library to Basic4Android.
StandOut is a library which you can use to make floating like apps.
StandOut - Create Floating Android Apps - YouTube
When calling a StandOut window, it creates a service which shows the window.
Now the problem is how I can interact with the views from Basic4Android.
In Basic4Android, I start a WindowService which takes care of the StandOut library. (Because it will be useless if you use StandOut with an Activity on it.)
1. I need to find a way on how to interact with all events from the views, for example button clicks, etc from a B4A service.
So some kind of eventlistener that listens on the service when a button is pressed.
2. Also, i found a way on how to add views using CallSubDelayed, but i don't know if this is the correct way.
Isn't there an easier way i can add views to the window from a service? (because most of them result in a nullpointer. Probably because of the context?)
3. Is it possible to create a view programmatically in a class, pass it to the service and the service adds the view to the StandOut Window? So the class has it's own activity context, so actually the events of the window will be called to the class module?
Any possible ideas to help me are welcome
Kind regards,
Tomas
Last edited: