Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cmds to enable EMMA instrumentation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sm8  
View profile  
 More options Oct 31 2012, 12:55 am
From: sm8 <stats.ma...@gmail.com>
Date: Tue, 30 Oct 2012 21:55:30 -0700 (PDT)
Local: Wed, Oct 31 2012 12:55 am
Subject: Cmds to enable EMMA instrumentation

The following web site gives detailed instructions on building an Android
app from the command line:http://geosoft.no/development/Android.html

If I want to enable EMMA instrumentation, for the Android build what are
the extra commands that I would need to do?

I tried the following:

java -cp <Android sdk path>\tools\lib\emma.jar emma instr -instrpath obj -outdir objinstr

dx --dex --output=<full_path>\bin\classes.dex <full_path>\objinstr <Android sdk path>\tools\lib\emma_device.jar

Then followed the remaining instructions to build the APK (package the
classes.dex using aapt, sign the app and zipalign).

I am able to install the resultant APK on the device, but when I try to
launch the app it crashes and I get the following error:

    W/dalvikvm( 1492): Exception Ljava/lang/Error; thrown while initializing Lcom/vladium/emma/rt/RT;

    W/dalvikvm( 1492): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/mycompany/package1/HelloAndroid;

    W/dalvikvm( 1492): Class init failed in newInstance call (Lcom/mycompany/package1/HelloAndroid;)

D/AndroidRuntime( 1492): Shutting down VM

What am I missing while adding the instrumentation?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tor Norbye  
View profile  
 More options Oct 31 2012, 11:00 am
From: Tor Norbye <tnor...@google.com>
Date: Wed, 31 Oct 2012 08:00:41 -0700
Local: Wed, Oct 31 2012 11:00 am
Subject: Re: Cmds to enable EMMA instrumentation

I believe there's some support for emma via the builtin Ant support.

First add ant support:

$ cd /my/project/dir
$ ~/dev/sdks/tools/android update project -p .
Updated local.properties
No project name specified, using Activity name 'MainActivity'.
If you wish to change it, edit the first line of build.xml.
Added file ./build.xml
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.

If you now run "ant" you'll see the build targets listed including this one:

     [echo]    emma:      Transiently enables code coverage for subsequent
     [echo]               targets.

-- Tor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »