Ok, I played a bit with homescreen widgets:
I have some problems with the size. I'm trying to create a 4x1 widget. The Android documentation mentions that in portrait mode a 4x1 widget should have the size 320x100. If I create such a base panel then I get a 4x2 widget. I have to reduce the size of the base panel to 75 to get a 4x1 widget (80 still gave 4x2. Didn't try all values inbetween). Is this normal? Seems a bit too low for me. Have I misunderstood something regarding the size?
If I add an ImageView without adding an Image in the designer I get the following error:
Took me some time to find the problem. At least the error message should be a bit better? (Another thing was that it is not allowed to select an image with a numerical name like "10.jpg". Then the R.java can not be compiled. Don't know if this should be fixed and I think has nothing to do with the new widget possibilities)
If you want to use a homescreen widget you should disable the "Can install to external storage" option. Otherwise you don't see the widget in the list of widgets. This should be mentioned in the documentation/Tutorials.
Ok, thats for now. Otherwise: It's absolutely fun to design widgets wich B4A :sign0162:
I have some problems with the size. I'm trying to create a 4x1 widget. The Android documentation mentions that in portrait mode a 4x1 widget should have the size 320x100. If I create such a base panel then I get a 4x2 widget. I have to reduce the size of the base panel to 75 to get a 4x1 widget (80 still gave 4x2. Didn't try all values inbetween). Is this normal? Seems a bit too low for me. Have I misunderstood something regarding the size?
If I add an ImageView without adding an Image in the designer I get the following error:
Error compiling program.
Error description: Die Zieldatei "C:\Users\stm\Dropbox\AndroDev\AHWeather\Objects\res/drawable/" ist keine Datei, sondern ein Verzeichnis.
Occurred on line: 8
rv = ConfigureHomeWidget("L4x1", "rv", 60, "AHWeather 4x1")
Word: )
Took me some time to find the problem. At least the error message should be a bit better? (Another thing was that it is not allowed to select an image with a numerical name like "10.jpg". Then the R.java can not be compiled. Don't know if this should be fixed and I think has nothing to do with the new widget possibilities)
If you want to use a homescreen widget you should disable the "Can install to external storage" option. Otherwise you don't see the widget in the list of widgets. This should be mentioned in the documentation/Tutorials.
Ok, thats for now. Otherwise: It's absolutely fun to design widgets wich B4A :sign0162: