Error wile calling exec("logcat");

by Arun » Tue, 09 Mar 2010 23:27:33 GMT

Sponsored Links
 Hi All,

I am trying to collect the logcat logs from an application, I created
a thread and run the following code

Process pProcLogMain = Runtime.getRuntime().exec("logcat -f

It creates the file but with no content. And, I get the following
Diag_LSM: Diag_LSM_Init: Failed to open handle to windiag driver,
error = 13

I have used similar code as in 

Appreciate if you can help me how to come over this.



Other Threads

1. Button is not clicking. OnClick Listener not being triggered.


I'm currently baffled about something. It seems like a genuine bug in
the SDK.

I have an activity that was the main activity for my program. It
consisted of 3 buttons. I added a third using the wysiwyg editor in

<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/buttonauthor"
android:text="Also by Author"></Button>

then I made a variable to refer to it in my activities onCreate() for
the activity which implements


then I made the OnClick Listener toast

        public void onClick(View view) {
                if (view == whatthehell) {
                        Toast.makeText(this, "clicked button02", 2000).show();

When I ran it, it didn't click. When I debug it, it didn't even go
into the onClick method.

I tried to give it its own anonymous OnClick listener and it did the
same behaviour

                whatthehell.setOnClickListener(new View.OnClickListener() {
                        public void onClick(View v) {
                                // TODO Auto-generated method stub
                        Log.v("Clicked the author button", "Pressed the author
button");                       }

I thought something may have been wrong with the emulator image, but I
tried it on a separate installation of Eclipse and had to make a new
emulator image for it. and it still did the same thing.

Am I missing anything?


2. onDraw() being called multiple unintended times

I may be wrong but It is probably being called multiple times by the Android
system in setting up your UI.  At work I do a lot of programming with Qt and
they document that certain methods will be called multiple times when
setting up the UI.

There are only 10 types of people in the world...
Those who know binary and those who don't.


3. Calculating text lenght

4. Did you know you can do this?

5. How to start up the native gallery app?

6. tentang pengaturan folder..

7. ArrayListAdapter resorts incorrectly..