If I create two or more instances of a widget on the homescreen is it possible to differentiate between them? Currently if I press the ImageView of the example Project all widget instances are updated.
Is it possible to create more than one widget layout? If I try to call ConfigureHomeWidget() from the same service twice B4A tells me that it is only allowed once per service module. If I create a second service module for a second widget (with another layout) I get the following error:
Compiling code. 0.05
Generating R file. Error
AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/widgetservice_info').
For now you cannot differentiate between multiple instances of the same widget.
This feature can be implemented with a help of a small library. I preferred to keep the main interface simpler as this feature is not needed in most cases.
You can have several types of widgets in the same application.
Each widget type should have its own service.
If it doesn't work for you, please upload your project.
For now you cannot differentiate between multiple instances of the same widget.
This feature can be implemented with a help of a small library. I preferred to keep the main interface simpler as this feature is not needed in most cases.
You can have several types of widgets in the same application.
Each widget type should have its own service.
If it doesn't work for you, please upload your project.
I just doubled the service from the example, created a slightly different (smaller layout) and tried to rename all process_global variables but still get the error.
I have created a couple of widgets which work, but I often get the message "no More room on this homescreen" when configuring, and the widgets cannot be moved, they always stay where the main panel upper left and top settings are.
This is a different issue which is not related to Basic4android. Each widget takes several "cells". If there are no cells available in the current home screen then you cannot add any more widgets.
Hi. is it possible to have two similar widgets on the same screen?
What I want to achieve is that each widget instance on the screen has same layout but different contents.
Currently I placed two similar widgets on screen, but when I click a button on one widget, the other widget button is also clicked. This is not what I want. I want each of the widget respond to their own event.