Traceview: trace file not found

by Graham Morehead » Mon, 03 Nov 2008 05:39:34 GMT


Sponsored Links
 In an attempt to debug my app, I was trying to use 'traceview' (one of
the apps in the the android SDK).  In the windows edition of the SDK
version 1.0, the executable is 'traceview.bat'.  I was able to get a
tracefile by using the 'android.os.Debug' package and using
Debug.startMethodTracing("basename"); and Debug.stopMethodTracing();
in my code.  I created a virtual sdcard for the emulator to use, and
then I ran the app on the emulator and was successful in creating a
trace file, which I pulled to a directory.  Here was my problem:
Whenever I tried to view the trace using 'traceview.bat', it said that
the file is not found.  This was hard to understand since I specified
the right directory.  I even went into that directory.  It still
couldn't find it.  I finally resolved it when I specified the whole
path using the notation  "C:/topdir/nextdir/... etc."  If you're not
familiar with Cygwin (a Unix shell for windows), you also have the
choice of specifying a path with "/cygdrive/c/topdir/...", but
'traceview' won't parse that.

Hope this helps someone.  It stalled me for hours.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. subscription expiry..!

Hi All,

                  My new requirement is subscription expiry. when I
install the application it will show the subsciption form if the
subsciption id matches it will proceed.! next time onwards it
automatically goes to the homescreen.

                  After that some 45 days after application will
expired and also I need to show notification also like "Application is
Expired ".

                  How can I achieve this..! very urgent.. eagery
waiting for the reply..!






Cheers,
Rubin

-- 

2. Why I can not open database in my service layer class

When I create a instance of the SQLiteOpenHelper, I always need a
"Context" to be passed as its constructor's argument. To use this
"Context", in my service layer class, I extends Activity class, though
I do not display this activity on the screen because it is my service
layer. I always get NullPointer exception when I open the
SQLiteOpenHelper in my service layer class, Is it because my service
layer class extends the Activity class but I did not show this
activity on mobile screen? (That's there is no intent to my service
layer class), if it is so, how to get rid of it if I wanna open a
SQLiteOpenHelper in my service layer class which do not need to
extends Activity, but need a Context object to pass to
SQLiteOpenHelper?

-- 

3. How to get image from received share intent from Gallery

4. Emulator display magic?

5. Dalvik tests from android source tree

6. Android porting on dm365

7. Toast not changing on mapactivity