API to delete SIM contacts & Messages AND erasing the SD card contents

by Surendra Reddy T » Thu, 30 Apr 2009 14:03:45 GMT

Sponsored Links
 i Schimmel,

Thanks for yous advice and suggestions.

What about SIM card tool kit? I read in the cupcake feature list on android
web page.
But now in 1.5 SDK I didnt find any SIM related API.
If any one want to contribute to this, I am ready with my team to develop
the SIM tool kit.

I read in the android developers guide that, we need to sign our application
with the device manufacture's certificate to get the most of the API to
work. Do any one have any info on this?

SD card formatting should be possile as of now with private API in 1.5.
But we can access all the files/dirs on the SD Card and I have written a
java code to delete the files recursively and it is working fine. But the
only problem is that, if u have more data on SD card, that java code takes
more time.
For 500MB it took 5 sec to delete all the files and directories.


On Wed, Apr 29, 2009 at 5:47 PM, brian.schimmel <
brian.schim...@googlemail.com> wrote:

Surendra Reddy T


Other Threads

1. XML reports from JUnit and Emma

Hi all,
I've a question about generating XML reports after unit tests. I want
to move build process to Hudson build server. It has plugins, which
can read JUnit and Emma reports in XML file format, parse them and
view in nice looking way.  My first thought was to create ant
buildifle in which I would compile sources, add instrumentation and
run Junit tests with instrumentated code, and generate report (using
Emma and Junit tasks). It works fine but only when classes which don't
use Android classses (e.g. Log.d("TAG","Log message")) were tested.
I've found that this is because Android classes are available only in
actual runtime (real device, emulator) - trying to test not on
emulator caused runtime exception: "Stub!".

So I decided to do those tests in a way shown on Android developer
site. I created two projects: first with main application, an second
for test purposes. I installed those two on emulator, and executed
tests via:
<b>adb shell am instrument  -w com.newbay.vault.test/

It run tests but, there wasn't very verbose output. I executed next
command, to include coverage:
<b>adb shell am instrument  -e coverage true -w com.newbay.vault.test/

It created "coverage.ec" file on emulator which I was able to download
via "adb pull" command.

The problem is I need XML report from JUnit. Also - to generate Emma
report - two files are needed: "coverage.ec" (which is generated on
emulator) and "coverage.em" file (metadata) which I cannot find

Questions are:
1. Can I somehow force Android to generate XML report from JUnit test
2. Where shall I look for metadata file ("coverage.em")?
3. Is it possible to successfully run tests without running emulator

I've found some posts on Google where "EMMA_INSTRUMENT=true" variable
was exported. Does this mean, that I have to compile SDK manually with
this variable defined to turn on "coverage.em" generation?

Thanks in advance four your answers


2. Community for Android Developers and Device Users

Hi everyone, I wanted to let you know about Duarlander - it's a
community we created for Android developers and device owners. We
started it out to get users and developers in the same place, so
people who own Android devices can test out applications, ideally
finding potential issues and allowing you to fix them or at least know
of their existence before bad reviews appear on the market.

Once we get more people we'll be not only testing applications but
reviewing them as well. And of course, everyone is free to talk about
their own apps, talk about apps that they like or use a lot, talk
about their phones, discuss issues or questions that they have...etc.

Take a look and sign up if you're interested! The website is www.duarlander.com.

3. how to set the notification volume to the ringtone volume

4. Is there a way to refer to a group of attributes

5. Find out if the user rated my application in the Market

6. aapt

7. I am a german market developer. How can I see the english comments to my program?