I will check that out. I also log whether I get a low memory warning and I didn't get any on these errors. I know it log also as I have tested it.

So what would you do?  Have you never had any of these problems?


On 06/01/2012 11:54 AM, Mark Murphy wrote:
On Fri, Jan 6, 2012 at 11:49 AM, Leigh McRae
<[email protected]>  wrote:
Here is one example.  My fonts have a binary and an texture.  The binary is
6,763 bytes and I am getting a file not found and it reports 63852544 bytes
free.
Yeah, that doesn't sound like a memory fragmentation issue.

Here is my free memory function.

    public long getFreeMemory()
    {
        MemoryInfo mi = new MemoryInfo();

        ActivityManager    activityManager =
(ActivityManager)m_App.getActivity().getSystemService(
Activity.ACTIVITY_SERVICE );

        activityManager.getMemoryInfo(mi);

        return mi.availMem;

    }
FWIW, here is Ms. Hackborn's thoughts on the subject of measuring memory usage:

http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to