Android Question High Memory Usage in My App That Only Plays Audio and Displays Images

nicieri

Active Member
Licensed User
Longtime User
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:

  1. Is there a way in B4A to monitor which parts of my code might be causing this high memory usage?
  2. Are there any recommended practices for managing images or audio playback to reduce memory consumption?
  3. Has anyone faced a similar issue with apps that play audio or display images?
Any advice or suggestions would be greatly appreciated!
 

Attachments

  • vvv.jpg
    122.1 KB · Views: 34
Cookies are required to use this site. You must accept them to continue using the site. Learn more…