Hi All,
Below are my notes on getting a widget preview image to appear in the widget list. The preview image appears in place of the app icon (if used).
1) Create a png with the preview in it, I used 300 * 150 (size doesn't seem to matter but you want to get the aspect ratio done right)
2) Save the png into the \Objects\res\drawable of your app. Note that the filename MUST be lowercase with no symbols or the compiler will moan.
3) Mark the file as read only or Basic4Android will overwrite it
4) Now edit the widget info XML file in the \Objects\res\xml folder
5) Add in the tag as follows to the provider line
androidreviewImage="@drawable/imagefilenamehere"
6) Change the imagefilenamehere text to your filename - make sure that you leave off the .png from the filename.
7) Mark this file as read only as well to ensure that it doesn't get overwritten.
Hope that helps someone!
Cheers,
Jon
Below are my notes on getting a widget preview image to appear in the widget list. The preview image appears in place of the app icon (if used).
1) Create a png with the preview in it, I used 300 * 150 (size doesn't seem to matter but you want to get the aspect ratio done right)
2) Save the png into the \Objects\res\drawable of your app. Note that the filename MUST be lowercase with no symbols or the compiler will moan.
3) Mark the file as read only or Basic4Android will overwrite it
4) Now edit the widget info XML file in the \Objects\res\xml folder
5) Add in the tag as follows to the provider line
androidreviewImage="@drawable/imagefilenamehere"
6) Change the imagefilenamehere text to your filename - make sure that you leave off the .png from the filename.
7) Mark this file as read only as well to ensure that it doesn't get overwritten.
Hope that helps someone!
Cheers,
Jon