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. onCreateContextMenu() not called in Notepad tutorial

Hi all
I am a beginner and I am trying the Notepad tutorial ( exercise 2 to
be precise).

In this onCreateContextMenu() is used to show delete menu. But when I
select a note and press "Menu" , onCreateContextMenu()  is not called;
instead onCreateOptionsMenu() is called.
The tutorial suggests calling registerForContextMenu(getListView());
in onCreate().
 But still it is not called.

I tried getListView().setOnCreateContextMenuListener(this);
still not use.

Has someone seen this issue? Any suggestion what can be wrong ?



2. Skipping the long load time by having the emulator on all the time


I'm developing a game on the Android and the problem I'm running into
is the fact that the actual emulator takes long time to boot. I have
to wait roughly 45s to 75seconds to get into my program. And when
actually doing lot of recompiling I'm wasting too much time for that.

So what can be done to get around this? I'd like to have the emulator
running and just upload the new program into it and run it instantly.
Is there a way to have the emulator up and running and upload the
program into it every time I compile, so I wouldn't have to wait for
the boot up time of the emulator?

All tips and tricks are definitely welcome.
Thank you.

- Mika


3. Mediastore Thumbnails not generated until Gallery app is launched ?

4. How to bring up the keyboard from WebViewClient

5. You must supply a resource ID for a TextView

6. Issue with allocation tracker: I cannot get it to work.

7. undefined behavior with getResultExtras and setResultExtras