using TraceView

by rajorshi » Fri, 23 Apr 2010 17:07:38 GMT

Sponsored Links
I have recently started working on an app which has both Java and
native components. I am trying to generate trace information for both
components using Debug.startMethodTracing("myapp") and
Debug.startNativeTracing() alternately. However, both are behaving
unexpectedly. When I use Debug.startMethodTracing("myapp"), I can see
a file "/sdcard/myapp.trace" being created but it is always empty no
matter how long I run my app. When I use Debug.startNativeTracing()
and start the emulator with the -trace <tracename> switch, I see a
message saying "Trace started", but when I try to run my app, the
emulator crashes. Am I missing something obvious here? How do I debug
this problem?

Thanks for any help.


Other Threads

1. Noob Question

I am following the directions to create the Hello, Android application
shown in the tutorial (
hello-world.html), but instead of the expected Hello, Android text
appearing, all I see are, first of all, the letters A N D R O I D
onscreen for a few seconds, followed by a logo-like ANDROID word next
to an iimage (of a stylized android).  Anyone know what I am doing
wrong?  Everything I've done seems exactly according to directions. Of
course, I probably screwed up somewhere, but I'll be darned if I can
see where.


2. problem in running very first app

anyone can help me in running my very first application.

however Emulator is launched but nothing happened ..
On the console following msgs came

[2009-11-27 13:58:23 - MyFirstProject]------------------------------
[2009-11-27 13:58:23 - MyFirstProject]Android Launch!
[2009-11-27 13:58:23 - MyFirstProject]adb is running normally.
[2009-11-27 13:58:23 - MyFirstProject]Performing activity launch
[2009-11-27 13:58:23 - MyFirstProject]Automatic Target Mode: launching new
emulator with compatible AVD 'my_avd1'
[2009-11-27 13:58:24 - MyFirstProject]Launching a new emulator with Virtual
Device 'my_avd1'
[2009-11-27 13:58:38 - MyFirstProject]New emulator found: emulator-5554
[2009-11-27 13:58:38 - MyFirstProject]Waiting for HOME
('android.process.acore') to be launched...
[2009-11-27 14:00:00 - MyFirstProject]emulator-5554 disconnected! Cancelling
' activity launch'!


3. GK:Error::While building the SDK open source project

4. Did Something Happen on Dec. 1st?

5. Old apps

6. Error::while building the SDK open source project

7. aosp/caf/ohd