Deleting buffer cache for IO throughput

by vrukesh » Fri, 29 May 2009 20:35:40 GMT


Sponsored Links
 Hi,

We are writing an application to measure throughput speed of SD card
on ARM-based Android target using Java APIs.

When we execute the application twice for read operation, results are
seen to be affected with buffer cache.

For example, first read throughput is 275 KBps and second read
throughput is 350KBps.

Application is simple Java-based application, it is .jar app. It is
not using the Application class  and hence, not having
AndroidManifest.xml present. ().

Is there any way to clear the buffer cache after each run of the
application ?

Thanks and Regards,
Vrukesh
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. system call for GSM/3G tx-power

Hello

I want to write a system call in die android source code to export the
transmission power of the GSM/3G module. My aim is to get a method
like the "getGsmSignalStrength()" but not for the received but for the
transmitted power.

I looked in the source code, but found no way. Has anybody an idea?

I know that the command "+CSQ" provides the rssi-signal strengt (from
die 3GPP standart). But there is now command in the standard to get
the transmission power.
Here I copied content from the data sheet:
http://www2.ifh.ee.ethz.ch/~fieldcom/pps-smartphone/moin.fcgi/Links%26Unterlagen?highlight=%28%5CbCyanogenMod%5Cb%29

Thanks!

Felix

-- 

2. Send an email in Android selecting only email apps AND specifying attachment mime type

In my Android App I send email messages with images attached.

Using the Intent system to send it, I can do one of the following two
things:

1) Specify type as "message/rfc822" so that ONLY email applications
are shown in the Chooser.

Inconvenience: I cannot specify the mime type of the image I attach
using EXTRA_STREAM and a Uri. Many receiving email apps (Gmail,
Android, etc) show this as an unknown binary "blob" attached to the
message, don't know how to preview it and don't know how to open it as
an attachment.

2) Specify the type as (say) "image/png". The image is attached and
email clients such as Gmail can preview it, and open the attachment in
the appropriate application.

Inconvenience: For the sending user, I cannot reduce the list of apps
the user has to select from in the Chooser to email apps, and MANY
apps are shown in my Android device, most of which are not email apps
and not what I want.

Is there anyway to specify its a "message/rfc822" email Intent AND to
specify the MIME type of the data attached via Uri in the
Intent.EXTRA_STREAM?

BTW: I am providing the file from my own ContentProvider and the
getType() method (used to determine file MIME type) is NOT being
called. The query() method is but doesn't request the file type, only
display name and file size.

thanks

-- 

3. ISL29030

4. php enviroment

5. [WTA] Cara mindahin contact dr WM 6.1 ke Android 2.2

6. how to make abc.img file in android programatically?

7. Touch State Highlighting