Hi everyone,
I'm encountering an issue with my app developed in B4A. On some devices, the system reports that my app is consuming an unusually high amount of memory, leading to Android showing a warning notification stating that it might affect the phone's performance.
App context:
- My app plays audio files and displays static images.
- I am not intentionally storing any data (no images, audio files, or excessive cache).
- Images are either loaded from local resources or from URLs.
- Audio files are simple streams or local files, not video files.
Attached is a screenshot showing the high memory usage reported by the system.
(Include your screenshot here.)
Additional details:
- The issue persists even when the app is idle (not actively playing audio or displaying new images).
- I've tried releasing bitmaps and other resources when they are no longer needed, but the memory usage remains high.
- I have not intentionally implemented any caching system, but something in my code might be generating temporary data that is not being properly released.
Questions:
- Is there a way in B4A to monitor which parts of my code might be causing this high memory usage?
- Are there any recommended practices for managing images or audio playback to reduce memory consumption?
- Has anyone faced a similar issue with apps that play audio or display images?
Any advice or suggestions would be greatly appreciated!