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. Reflection / backward compatibility question

Hi all. The examples at... some good ideas of testing methods against incompatible

But the method I want to call is DisplayMetrics.densityDpi(); (since
level 4) which returns an int value. None of these examples return any
values, they're all void.

How would I do this?



2. Wrong Position when using Big Images


i just stumpled over this:

In want to place an Image on the Bottom of the Screen, so i used an
RelativeLayout placed an ImageView in it:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="
android:layout_height="wrap_content" >

 <ImageView android:layout_width="wrap_content"
 android:layout_alignParentBottom="true" android:src="@drawable/hand"

My Emulator ist API Version 8, with Screen Dimension 480x800. The
Image in the HDPI Folder was 652x652 in 240DPI. If i run it with this
Image (hand) i always get the Image Scaled but it shows up much more
over the Bottom as i would expect. The Image has NO transparent Border
that may would cause this.

When i scale the Image down to apx. width of the Screen (480x480) i
get a result i would expect.

Anybody can explain why Android Layout like this ?

PS: I did not put any other Images of that in the folders "mdpi" or
"ldpi" as alternatives !

best regards,


3. Ringtone playing just once.

4. Pinch Zoom on Image

5. Customizing a RelativeLayout

6. SQLite Implementation

7. HTC Evo Brand New feat HTC HD 2 and HTC touch Pro