using TraceView

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


Sponsored Links
 Hi,
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. Can android application overwrite the volume down/up key's behavior?

You can override dispatchKeyEvent which should do the trick.



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

2. Layout Problem Listview in Scrollview

Hi,
I have a listview, there in the top is a gallery and two lines of
text, than follows my listview.
The problem ist, when i say height in listview = fill_parent or
wrap_content and i have lets say 30 items in the listview,
only the first List Item is shown (it does not fill the screen, or
show all items.) Finaly I would like the gallery in the top
, two lines textview and than the full listview. When I scroll down,
everything (incl. gallery...) has to scroll up.

Its just a trick to see if it works, that I had made listview
heigth=5300px, but for sure I would like that its auto heigh:)
And also something strange. As it is like now and the design pops up.
It does not start at the TOP (with the gallery)
instead it starts where the listview starts?!?!

Here is my layout:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:id="@+id/widget28"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
android:id="@+id/widget29"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
<Gallery android:id="@+id/gallery"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="bottom"
/>
<TextView
    android:id="@+id/gallery_underline1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
android:gravity="center_horizontal"
           android:textSize="16sp"
                   android:textStyle="bold"
                   android:text="Picture Info helloo"
    />
    <TextView
    android:id="@+id/gallery_underline2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Seconde Line of Picture"
android:gravity="center_horizontal"
    />
<ListView
       android:id="@+id/shoppinglist"
    android:layout_width="fill_parent"
    android:layout_height="5366px" />
</LinearLayout>

</ScrollView>


thanks for help
chris

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

3. how can I clear a transparent or translucent canvas

4. Android SMS Storage

5. waiting of pay Market in Germany

6. Eclipse Landscape Emulator

7. T1-mobile developers UK