Hi
I have an activity whereby the user can select different activity background images. There are six .png files to choose from - all same image size, formats etc just different colours.
Within the customise form in Designer, if I exclusively set the background bitmapDrawable image from any of the six loaded files they all appear when Designer is in WYSIWYG Connection mode - no problems. The file is not corrupt as I can reload it into GIMP and it views in Microsoft Photos etc.
But when the application runs in Debug Mode, one image file 'does not exist'. The file is there, in the correct directory, there's no mismatch in filename or extension etc.
I don't know how to test further as I think the 'file does not exist' test error return is ambiguous in this regard and could therefore actually be another reason as to why it cannot be loaded.
I save and run my work from directories within OneDrive (Cloud based) so I can work on two different PC's at separate locations and everything is synced and ready to go) - The IDE did experience some Auto Save problems. I've always worked this way.
I have no idea on how to test further beyond the 'If file.exists(file.DirAssets,"{filename.png}) method to get a hint of what is going on.
The .png image sizes are all less than 3,440KB in size. Is there a limit to how many files can be loaded into the Application>Files directory or something?
Thanks
I have an activity whereby the user can select different activity background images. There are six .png files to choose from - all same image size, formats etc just different colours.
Within the customise form in Designer, if I exclusively set the background bitmapDrawable image from any of the six loaded files they all appear when Designer is in WYSIWYG Connection mode - no problems. The file is not corrupt as I can reload it into GIMP and it views in Microsoft Photos etc.
But when the application runs in Debug Mode, one image file 'does not exist'. The file is there, in the correct directory, there's no mismatch in filename or extension etc.
I don't know how to test further as I think the 'file does not exist' test error return is ambiguous in this regard and could therefore actually be another reason as to why it cannot be loaded.
I save and run my work from directories within OneDrive (Cloud based) so I can work on two different PC's at separate locations and everything is synced and ready to go) - The IDE did experience some Auto Save problems. I've always worked this way.
I have no idea on how to test further beyond the 'If file.exists(file.DirAssets,"{filename.png}) method to get a hint of what is going on.
The .png image sizes are all less than 3,440KB in size. Is there a limit to how many files can be loaded into the Application>Files directory or something?
Thanks