wow thanks for your reponses.
My intention is not to flush all the RAM, but as Satish Bellapu
suggested the data that I have allocated should be deleted from the
RAM.
When I download a file from the internet and then save it as a file to
the android device
I may be able to prove that saving and reloading a certain file from
the file system is faster than redownloading it.
However in order to show the _real_ gain of performance when caching
certain files
one has to assume that between
the time when a file was downloaded and saved
and
the time it is reloaded from the filesystem
several other applications needed the RAM of the device. This means
that my file that was once stored on the RAM is not stored there
anymore.
Now when I make some kind of benchmark test of how long it takes to
load a file from the file system
I do this by launching this "load from device - thread" several times
sequentially in a for{} loop.
Between each step of this for loop I have to make sure that the file
that I have just loaded will get erased from the RAM.
So my intention is to delete a certain file from the RAM.
So far I thought about that:
In every loop of my for{} I write a lot of dummy data to the RAM so
that my
real file gets overwritten.. but this does not really work so far (not
exactly sure why)
I hope I made it clear what my intentions are
Thank you very much in advance.
Great support.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---